Comments (6)
Hi @kiritbasu, you could add a print statement before any place we call bson_iter_type
with relevant local variables in lib.pyx, using a source install, or if you have an example document that causes the error we can take a look.
from mongo-arrow.
Thanks @blink1073 looks like the error happens when its trying to do extract_document_dtype - specifically value_t = bson_iter_type(doc_iter)
The specific type it fails on is this :
charts: [ { title: 'My Sessions by Region', chartType: 'LINE' }, { title: 'My Sessions by Country', chartType: 'LINE' }, ]
there are several instances where I have empty chart []
- i suspect its happening when its empty.
from mongo-arrow.
Ah, yes, that makes sense, thank you! I created https://jira.mongodb.org/browse/ARROW-158 to track this issue.
from mongo-arrow.
Thanks.
BTW something to consider is an ability to see some sort of progress when getting a large document. With regular pymongo I wouldn't care because I'd have to do the chunking/pagination myself, but because this is arrow, I'm more inclined to get large documents and so being able to understand where in the process I am and how much is left would be very useful for these fetch_all type operations.
from mongo-arrow.
Hi, I'm also getting this error.
mongo-arrow/bindings/python/mongo-c-driver-1.21.1/src/libbson/src/bson/bson-iter.c:477 bson_iter_type(): precondition failed: iter->raw
In my case, I can produce the error with a find by _id that returns a single document.
from mongo-arrow.
Fixed by 398d222
from mongo-arrow.
Related Issues (20)
- Dataframe is all Nat and None after loading HOT 6
- Ability to query _id as string if it is of type ObjectId (e.g. "63fcb5aa5e1d7530a517dc44") HOT 1
- Casting timestamp in find_panads_all() HOT 1
- How to define data type for uuid and array types HOT 7
- AttributeError: 'pyarrow.lib.DataType' object has no attribute '_type_marker' HOT 1
- Bug: find_arrow_all in version 1.0.1 returns wrong schema for nested bson.ObjectId while bson.ObjectId on root level works as documented HOT 2
- ARROW-175 Bug: nested data seems to be decoded even if not in schema HOT 3
- aggregate_arrow_all(...) >four times slower in version 1.0.2 compared to 1.0.1 with fields objects HOT 5
- Can `find_all_pandas` treat list of struct as nested dataframe? HOT 1
- Any chance you could fix the docs? HOT 4
- Does mongo-arrow provide real zero copy in the chain mongodb->arrow->pandas? HOT 3
- java version HOT 1
- Nested Data With Schema ERRor
- MongoDB's Decimal128 seems to be returned as fixed_size_binary[16] HOT 3
- Support for Tool HOT 1
- undefined symbol: _ZN5arrow6StatusC1ENS_10StatusCodeERKSs with airflow 2.8.1 HOT 1
- Trouble reading documents with empty embedded arrays HOT 1
- [documentation update request / feature request] `write` supported types
- Add an optional bool flag to the `write` function to skip writing `null` fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo-arrow.