Skip to content

Segmentation fault when document doesn't match schema #260

@tlinhart

Description

@tlinhart

Here is the minimal test.py example:

from pymongo.mongo_client import MongoClient
from pymongoarrow.api import Schema, find_arrow_all

if __name__ == "__main__":
    client = MongoClient()
    client.db.test.insert_one({"x": {"y": 1}})
    find_arrow_all(client.db.test, {}, schema=Schema({"x": str}))

Running it causes a segfault:

$ ./venv/bin/python test.py 
Segmentation fault (core dumped)

Relevant package versions:

pyarrow==18.0.0
pymongo==4.10.1
pymongoarrow==1.6.2

Tested both on x86 and ARM64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions