Giter Club home page Giter Club logo

Comments (6)

blink1073 avatar blink1073 commented on June 3, 2024

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.

kiritbasu avatar kiritbasu commented on June 3, 2024

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.

blink1073 avatar blink1073 commented on June 3, 2024

Ah, yes, that makes sense, thank you! I created https://jira.mongodb.org/browse/ARROW-158 to track this issue.

from mongo-arrow.

kiritbasu avatar kiritbasu commented on June 3, 2024

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.

davidmathers avatar davidmathers commented on June 3, 2024

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.

ShaneHarvey avatar ShaneHarvey commented on June 3, 2024

Fixed by 398d222

from mongo-arrow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.