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.