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

FIX: correctly ignore fields when reading data #391

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

brendan-ward
Copy link
Member

Resolves #388

Drivers will return inconsistent results when columns does not include the columns referenced in where expression. For some drivers, this will either return 0 results or raise an exception; other drivers appear to work without issue (GPKG, GeoJSON). Added documentation to indicate that users should include the column used by where in their list of columns.

The test added here verifies that fields are indeed ignored by GDAL (previously they weren't properly ignored).

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@brendan-ward
Copy link
Member Author

Added changelog entry to call this out as a potentially breaking change, since switching from the incorrect behavior that existed prior to this PR to the latest will now break folks that relied on this (myself included).

@jorisvandenbossche jorisvandenbossche merged commit 87c0e99 into main Apr 17, 2024
20 checks passed
@jorisvandenbossche jorisvandenbossche deleted the issue388 branch April 17, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants