Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geoarrow.rust.io.write_flatgeobuf() panics when writing data that contains nulls #993

Open
paleolimbot opened this issue Feb 4, 2025 · 2 comments

Comments

@paleolimbot
Copy link

I can follow up with a more complete example, but when preparing geoarrow-data I tried to write the example files, all of which contain nulls. When I try to write such a file I get:

pyo3_runtime.PanicException: called `Option::unwrap()` on a `None` value
@kylebarron
Copy link
Member

Hmm.. it would be nice to see a traceback of exactly where this happens. Do you have a fuller example out of the box?

@paleolimbot
Copy link
Author

import geoarrow.pyarrow as ga
from geoarrow.rust.io import write_flatgeobuf
import pyarrow as pa

table = pa.table({"geometry": ga.as_geoarrow(["POINT (0 1)", None])})
write_flatgeobuf(table, "foofy.fgb")
#> PanicException: called `Option::unwrap()` on a `None` value

...the backtrace isn't useful because I think the debug symbols were stripped from the wheel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants