Closed brendan-ward closed 2 months ago
Reported to GDAL #9655
Per further tests in GDAL #9655, the GDAL Python bindings are not giving the same results when not using the Arrow API as we are getting here. Those return 0 features when not using Arrow API, same as using the Arrow API.
In contrast here:
df = read_dataframe(
filename, where=""" "iso_a3" = 'CAN' """,columns=["name"]
)
returns
name geometry
0 Canada MULTIPOLYGON (((-122.84000 49.00000, -122.9742...
This suggests a possible error on our end, though I'm not yet sure how we'd get into a state where GDAL expects no features and yet we return some.
Per GDAL #9664, we should update our docs to indicate that it is not recommended to use where
against columns not present in columns
if both are provided.
Found our bug: we were setting the set of ignored fields after narrowing the list of fields down to those in columns
, which meant that ignored fields were never set and we didn't pass those to GDAL.
Fix forthcoming...
Observed with GDAL 3.8.3 on MacOS
yields
when it should have one record.
Unclear if this is an error on our side our in GDAL.