-
Notifications
You must be signed in to change notification settings - Fork 609
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
bug: Loading geometry from postgres with SRID gives error #9465
Comments
@Riezebos thank you for reporting this. I think I know where the problem is, but I need to investigate a bit more. @cpcloud looks like the tests that we have checking if ibis/ibis/backends/postgres/tests/test_geospatial.py Lines 247 to 262 in 5a9d026
Looks, it's failing here, because there is no way to pass the srid at this stage, however I don't see any references in the code to this method, so I'm not sure how we get there. Do you have any clues? ibis/ibis/backends/sql/datatypes.py Lines 298 to 304 in 5a9d026
|
From triage earlier today: from the |
Would be nice to get this in for 9.2! |
What happened?
Very similar to #8807. When trying to load a table with a geometry that has an SRID set, I get the following error:
TypeError: SqlglotType._from_sqlglot_GEOMETRY() takes from 1 to 2 positional arguments but 3 were given
Here is a reproducible example:
If it helps, loading this table with geopandas does not give errors.
What version of ibis are you using?
ibis-framework[postgres,geospatial]==9.1.0
(Also tried --pre)
What backend(s) are you using, if any?
Postgres
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: