Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'messages'}) and 7 missing columns ({'discussion', 'image_url', 'views', 'fancy_title', 'tags', 'title', 'created_at'}).

This happened while the json dataset builder was generating data using

hf://datasets/wangzhang/mongoDB_community_hot/mongoDB_data_hot.jsonl (at revision af70a7e8c88f0324d190036b17b260a420dceeec)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              messages: list<item: struct<role: string, content: string>>
                child 0, item: struct<role: string, content: string>
                    child 0, role: string
                    child 1, content: string
              to
              {'discussion': [{'code': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'username': Value(dtype='string', id=None)}], 'image_url': Value(dtype='string', id=None), 'views': Value(dtype='int64', id=None), 'fancy_title': Value(dtype='string', id=None), 'tags': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'title': Value(dtype='string', id=None), 'created_at': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'messages'}) and 7 missing columns ({'discussion', 'image_url', 'views', 'fancy_title', 'tags', 'title', 'created_at'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/wangzhang/mongoDB_community_hot/mongoDB_data_hot.jsonl (at revision af70a7e8c88f0324d190036b17b260a420dceeec)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

created_at
string
image_url
null
views
int64
title
string
fancy_title
string
discussion
list
tags
sequence
2022-02-06T16:10:18.497Z
null
24,789
Aggregate $match _id $eq $toObjectId not working
Aggregate $match _id $eq $toObjectId not working
[ { "code": "db.getCollection('dlsComponents').aggregate([\n { $match: { library: 'Library1', collection: 'Collection1', media: 'Images', object: 'Image3' } }\n ])\n{ _id: ObjectId(\"61fc458b46d7874a3a97ef79\"),\n library: 'Library1',\n collection: 'Collection1',\n media: 'Images',\n object: 'Image3',\n inf...
[ "aggregation", "compass" ]
2022-10-06T08:01:53.956Z
null
5,791
Problem installing MongoDB 6.0 on Amazon Linux 2
Problem installing MongoDB 6.0 on Amazon Linux 2
[ { "code": "", "text": "I’m also having the same issue as Install mongodb-org 5.0 on Amazon Linux 2 aarch64 architecture. how to resolve", "username": "Simeon_Palla" }, { "code": "/proc/cpuinfox86_64aarch64", "text": "Welcome to the MongoDB Community @Simeon_Palla!Please provide more details ...
[]
2023-03-28T19:55:40.589Z
null
8,763
Getting this error - MongoNotConnectedError: Client must be connected before running operations
Getting this error - MongoNotConnectedError: Client must be connected before running operations
[ { "code": "// Code to require the parts needed for seedsindex to work correctly\nconst mongoose = require('mongoose');\nconst MusicProduct = require('../database_models/musicproduct');\nconst BookProduct = require('../database_models/bookproduct');\n\nconst musicAlbums = require('./musicseeds');\nconst bookNove...
[ "node-js", "mongoose-odm" ]
2023-01-20T23:24:01.307Z
null
5,937
MongoNetworkError: connection 1 to *IP*:27017 closed
MongoNetworkError: connection 1 to *IP*:27017 closed
[ { "code": " MongoNetworkError: connection 1 to *IP*:27017 closed\n at Connection.onClose (.../node_modules/mongodb/lib/cmap/connection.js:134:19)\n at TLSSocket.<anonymous> (.../node_modules/mongodb/lib/cmap/connection.js:62:46)\n at TLSSocket.emit (node:events:513:28)\n at TLSSocket.emit (node:doma...
[ "node-js", "serverless" ]
2022-09-16T07:09:08.408Z
null
6,639
WARNING! -- Mongo DB Serverless Pricing
WARNING! &ndash; Mongo DB Serverless Pricing
[ { "code": "", "text": "Hi Folks,Just a quick word of warning… if you’ve got a Mongo DB serverless database running you better keep an eye on the bill. I’ve just been stung for $155 for 2 1/2 days. To say I’m shocked is an understatement .The pricing structure is really not user friendly and TBH I feel a bit...
[ "serverless" ]
2022-06-11T12:40:21.913Z
null
14,092
Unable to look up TXT record for host ****.****.mongodb.net from GCP ap
Unable to look up TXT record for host ****.****.mongodb.net from GCP ap
[ { "code": "", "text": "I have a single node GCP cluster with my spring-boot app running. I recently created a new DB [M10] cloud atlas and trying to connect it via my app. However, I keep getting the following error - screenshot attached\n\nScreenshot 2022-06-11 at 14.27.531920×961 289 KB\nHowever, I am abl...
[ "java", "atlas-cluster", "spring-data-odm" ]
2020-05-01T19:36:46.972Z
null
9,213
Data modeling for social media followers/following... bucket pattern?
Data modeling for social media followers/following&hellip; bucket pattern?
[ { "code": "", "text": "Hi, I’m working on implementing social functionality in an app where users can follow each other. I’m trying to come up with a good approach for storing these follower/following relationships between users.I was initially going to use two collections… Follower and Following where each...
[ "data-modeling" ]
2022-03-02T13:23:42.061Z
null
5,989
pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed
pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed
[ { "code": "", "text": "pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed: my-clus1-shard-00-00-pri.xyz.mongodb.net:27017: [SSL: WRONG_VERSION_NUMBER]Flask==2.0.2\nFlask-PyMongo==2.2.0\nrequests==2.20.1\npymongo[tls,srv]==4.0.1Any idea why the wrong ssl is from the packages or something else",...
[ "python", "atlas-cluster" ]
2022-05-05T11:06:00.266Z
null
5,110
Data API is slow
Data API is slow
[ { "code": "", "text": "I am trying to call data-api from postman, it’s taking nearly 3 seconds to give response. Is it the normal case? Because querying through connection URL is a lot more faster than this. Will data Api give the same performance as we get from connection URL or it’s slower than the other ...
[ "data-api" ]
2021-10-20T13:28:35.345Z
null
31,140
(Unauthorized) not authorized on admin to execute command
(Unauthorized) not authorized on admin to execute command
[ { "code": "", "text": "I have created free cluster and db on Mongo Atlas but I try to connect my app by mongoose.connect(‘mongodb+srv://Ahmed:Admin123@st.0qt0i.mongodb.net/bktrans?retryWrites=true&w=majority’)And the below error appears when I run rpm start on my API:(Unauthorized)not authorized on admin ...
[ "node-js" ]
2021-10-26T06:27:29.355Z
null
12,260
Connect mongod exiting with code 1, can not see specific any error in log file
Connect mongod exiting with code 1, can not see specific any error in log file
[ { "code": " MongoDB shell version v5.0.3\n connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb\n Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :\n...
[]
2021-08-12T13:35:14.822Z
null
84,535
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector
[ { "code": "Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.\n\nClient view of cluster state is {type=REPLICA_SET, servers=[\n {address=mongo01:27017, type=UNKNOWN, state=CONNECTING*},\n {address=mongo02:27017, type=REPLICA_SET_SECONDARY, ro...
[ "java", "connecting", "spring-data-odm" ]
2022-03-16T10:12:35.360Z
null
29,336
Storing images in MongoDB
Storing images in MongoDB
[ { "code": "", "text": "hello community! i am new to MongoDB, i wanna know if mongodb is good for storing images and how i can store images in mongodb. I am using Node, Express framework and reactjs. Pls i need a perfect tutorial on how i can work with images. Thanks a bunch.", "username": "Phemmyte_Elec...
[ "node-js" ]
2020-12-30T19:51:51.603Z
null
9,595
Atlas Search Autocomplete on an array of object
Atlas Search Autocomplete on an array of object
[ { "code": "services: [\n\n{\n name: \"repair tire\"\n},\n{\n name: \"oil change\"\n}\n\n]\n", "text": "HiI have an array of objects likeI set a MongoDB atlas full text search with autocomplete on “services.name” but when i search using autocomplete it doest not show anything.", "username": "Pushaan_N...
[]
2022-05-19T08:20:18.630Z
null
9,709
I can not connect my mongodb compass with my cluster
I can not connect my mongodb compass with my cluster
[ { "code": "", "text": "querySrv ENODATA _mongodb._tcp.jvuwithjesus.ygys3.mongodb.net", "username": "Jimmy_h_Vu" }, { "code": "mongodb+srv://", "text": "Are you using a mongodb+srv:// connection string? If you are, it’s possible that the DNS servers of your internet service provider can’t res...
[ "compass", "atlas-cluster" ]
2022-07-13T12:06:18.256Z
null
8,451
Cannot add authorization "enable" to mongod.conf yaml ccp-error
Cannot add authorization &ldquo;enable&rdquo; to mongod.conf yaml ccp-error
[ { "code": "rror parsing YAML config file: yaml-cpp: error at line 31, column 6: end of map not found\n", "text": "Hi fellows,\nI have a problem I cpuldn’t solve nor find a solution for yet. I needed to add authorization “enabled” to the mongod.conf to create and update users. If I try I get the following er...
[]
2022-03-31T15:53:59.789Z
null
7,109
Mobile Bytes #9 : Realm React for React Native
Mobile Bytes #9 : Realm React for React Native
[ { "code": "@realm/react@realm/reactrealm-js@realm/react@realm/reactrealmTask_id_idclass Task extends Realm.Object {\n _id!: Realm.BSON.ObjectId;\n description!: string;\n isComplete!: boolean;\n createdAt!: Date;\n\n static generate(description: string) {\n return {\n _id: new Realm.BSON.ObjectId()...
[ "node-js", "react-native", "react-js", "mobile-bytes" ]
2021-08-26T21:48:16.961Z
null
16,746
IsConnected not a function in next.js app
IsConnected not a function in next.js app
[ { "code": "", "text": "I’m starting to use the mongodb driver for next.js. I followed the example of How to Integrate MongoDB Into Your Next.js App | MongoDB but first I found that the example code doesn’t work anymore but I manage to make it work with a few tweaks.Now I want to use it in my own app, so I w...
[ "node-js", "next-js" ]
2022-10-31T09:03:37.901Z
null
5,092
Realm Flexible Sync not working properly in Swift
Realm Flexible Sync not working properly in Swift
[ { "code": "class Comment: Object, ObjectKeyIdentifiable {\n @Persisted(primaryKey: true) public var _id: String = UUID().uuidString\n @Persisted public var ownerId: String\n @Persisted public var comment: String\n}\nlet app = App(id: \"xxxxxxx\")\n@main\nstruct TestSyncApp: SwiftUI.App {\n var body: some Sc...
[ "swift", "flexible-sync" ]
2021-01-29T04:24:34.272Z
null
15,313
Error Throwing Unrecognized pipeline stage name: '$search'
Error Throwing Unrecognized pipeline stage name: &lsquo;$search&rsquo;
[ { "code": "db.collection.aggregate([{\n$search: {\n\ttext: {\n\t\tquery: 'multi word query',\n\t\tpath: [...some fields],\n\t},\n}}]);\nUncaught exception: Error: command failed: {\n\t\"ok\" : 0,\n\t\"errmsg\" : \"Unrecognized pipeline stage name: '$search'\",\n\t\"code\" : 40324,\n\t\"codeName\" : \"Location40...
[]
2022-07-24T17:37:56.698Z
null
30,358
Unable to connect db because of "throw new MongoParseError('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');"
Unable to connect db because of &ldquo;throw new MongoParseError(&lsquo;Invalid scheme, expected connection string to start with &ldquo;mongodb://&rdquo; or &ldquo;mongodb+srv://&rdquo;&rsquo;);&rdquo;
[ { "code": "throw new MongoParseError('Invalid scheme, expected connection string to start with \"mongodb://\" or \"mongodb+srv://\"');\n ^\n\nMongoParseError: Invalid scheme, expected connection string to start with \"mongodb://\" or \"mongodb+srv://\" ...\nconst { ApolloServer, gql } = require...
[ "node-js", "connecting", "atlas-cluster", "graphql" ]
2020-12-20T20:02:18.134Z
null
9,877
Could I connect my front-end directly to Atlas?
Could I connect my front-end directly to Atlas?
[ { "code": "", "text": "Hi, the community,I’m developing a small web app that can store my movies watch list. I’m storing the data to the browser’s local storage and going to make it online so that I can access it from anywhere.Because the application is really small, I don’t want to set up a back-end betwee...
[]
2021-05-14T16:41:51.733Z
null
6,157
Using custom domain with graphql endpoint
Using custom domain with graphql endpoint
[ { "code": "www.MYDOMAIN.com\n(which links to MYAPP.mongodbstitch.com)\nhttps://realm.mongodb.com/api/client/v2.0/app/MYAPP/auth/providers/.../login\nhttps://realm.mongodb.com/api/client/v2.0/app/MYAPP/graphql\nhttps://www.MYDOMAIN.com/auth/providers/.../login\nhttps://www.MYDOMAIN.com/graphql\nhttps://API.MYDOM...
[ "graphql" ]
2023-03-04T08:23:45.531Z
null
10,595
This.options = options ? {};
This.options = options ? {};
[ { "code": "", "text": "\nimage1878×1053 160 KB\n\nI run this backend on windows and kali linux worked perfectly but when I tried on ubuntu then it showed an error. could anybody help me?", "username": "Abu_Said_Shabib" }, { "code": "", "text": "my code is\n\nimage959×1071 95.7 KB\n", "us...
[ "node-js" ]
2021-11-23T21:57:33.943Z
null
7,184
> error: TypeError: Cannot access member 'db' of undefined
&gt; error: TypeError: Cannot access member &lsquo;db&rsquo; of undefined
[ { "code": "", "text": "exports = function(arg){\nvar collection = context.services.get(“Cluster0”).db(“Database”).collection(“alldata”);return collection.find({});\n};error:\nTypeError: Cannot access member ‘db’ of undefinedI keep getting this error. How can I fix this?", "username": "tkdgy_dl" }, {...
[]
2020-04-03T12:52:52.593Z
null
7,775
Real Time: MongoDB data to AWS QuickSight
Real Time: MongoDB data to AWS QuickSight
[ { "code": "", "text": "My current Database size is of around ~4 GB and it is increasing day by day. I have a requirement to integrate it with BI service to give clear insights of the data to the stakeholders.Is it possible to integrate MongoDB directly with AWS QuickSight? There are options of importing CSV...
[]
2021-08-30T07:00:30.513Z
null
9,246
How to use aggregation for large collection?
How to use aggregation for large collection?
[ { "code": "model.aggregate([\n {\n $match: {\n parent: 0\n }\n },\n {\n $graphLookup: {\n from: appId + \"_\" + viewName + \"s\",\n startWith: \"$id\",\n connectFromField: \"id\",\n c...
[ "aggregation" ]
2022-05-22T14:57:14.086Z
null
13,933
MissingSchemaError: Schema hasn't been registered for model UserAddress.address
MissingSchemaError: Schema hasn&rsquo;t been registered for model UserAddress.address
[ { "code": "const mongoose = require(\"mongoose\");\n\nconst orderSchema = new mongoose.Schema(\n {\n user: {\n type: mongoose.Schema.Types.ObjectId,\n ref: \"User\",\n required: true,\n },\n addressId: {\n type: mongoose.Schema.Types.ObjectId,\n ref: \"UserAddress.address\",\n...
[ "queries", "node-js", "mongoose-odm" ]
End of preview.

No dataset card yet

Downloads last month
3