-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Wrong data returned for some OGRSQL queries combined with OGR_L_SetNextByIndex #8585
Comments
This is not specific to the Arrow interface.
|
Sorry for the misinformation about it being specific for Arrow. I don't see where, but somewhere in the pyogrio code it must be "handled" for the non-arrow case... |
rouault
added a commit
to rouault/gdal
that referenced
this issue
Oct 21, 2023
rouault
added a commit
that referenced
this issue
Oct 21, 2023
OGRSQL: fix incorrect interaction of LIMIT clause and SetNextByIndex() (fixes #8585)
rouault
added a commit
that referenced
this issue
Oct 21, 2023
rouault
added a commit
that referenced
this issue
Oct 21, 2023
rouault
added a commit
that referenced
this issue
Oct 21, 2023
[Backport release/3.7] OGRSQL: fix incorrect interaction of LIMIT clause and SetNextByIndex() (fixes #8585)
bradh
pushed a commit
to bradh/gdal
that referenced
this issue
Oct 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following combination of factors leads to wrong data being returned:
In this combination the rows aren't skipped correctly.
I'm afraid I don't have a code snippet ready to reproduce it... it was noticed while working on the arrow interface in pyogrio, so in cython.
However, it can be triggered by eg. running "SELECT * FROM LIMIT 1" on any dataset using the "OGRSQL" dialect and setting OGR_L_SetNextByIndex to index 1. This should return 0 rows, but it returns one row.
Tested on gdal 3.7 and 3.8, and this gives the same result.
reference: geopandas/pyogrio#306
The text was updated successfully, but these errors were encountered: