-
Notifications
You must be signed in to change notification settings - Fork 590
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
CI/TST: Use same SRIDs for test_geo_spatial_binops #2051
Conversation
563d65c
to
5f549c9
Compare
|
It seems OmnisciDB and PostgreSQL set a different default SRID in the table. It is possible to define SRID in the table creation or use different points with suitable SRID for different backends. In the first case when I set 4326 SRID I get doubles instead of ints the table that occurs errors in several test suites. |
|
Hello @semelianova! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-02-12 06:41:36 UTC |
b27c78c
to
d0f7248
Compare
|
@semelianova thanks for working on that!
could you give me an example about that? |
|
I specifically define SRID in /ci/schema/omniscidb.sql then I load data by ci/datamgr.py
While with default SRID I get: |
|
@semelianova thanks for caching that up. so maybe would be good to force srid 0 when there is no srid specified for omniscidb. how does it sounds to you? |
|
I have nothing against, it sounds good to me. |
63894b3
to
abe3ad7
Compare
|
@semelianova pls merge master |
b21b837
to
b3260aa
Compare
|
@xmnlab PR is ready for review |
|
@semelianova thanks for ping me .. I was playing with your branch last week .. ... maybe we would need to change the approach ... but I need to play a little bit more ... I am going to play with that again today, sorry for the delay. |
|
@semelianova I was checking this issue. it seems the default for postgresql is 4326 (https://postgis.net/docs/using_postgis_dbmanagement.html#Geography_Basics) so probably we don't want to define default for postgresql to 0 so for your PR maybe you should just force 4326 for omniscidb in the table creation and change the test if necessary. not sure if it is enough for every case when srid is omitted .. but at least for the test it would be enough .. and we can discuss more that in a follow up issue/PR (also we could propose a community meeting to discuss that) how does it sounds? |
|
looks ok to me, @xmnlab comments. |
|
Yes, OmnisciDB and PostgreSQL set a different default SRID in the table, 4326 is the default for PostgreSQL, 0 is for OmnisciDB. I can't understand why you want to save default 4326 SRID for PostgreSQL but force push 4326 to OmnisciDB. I can do this way but it is possible to occur difficulties with doubles (comparisons etc). |
|
@semelianova I think for this PR we don't need to worry about the "default" and we can just create the geo table using the same SRID for both tables. as literals without SRID (eg. points, linestring, etc), in theory, will be treated by each backend the same SRID used by the table creation, so it would be fine. in general ibis tries to have an uniform behavior for the operations for all backends. for example window rank operations always starts from 0 in ibis land ... so if some backend starts from 1 ... we just add inside the translation not sure if we can do something similar to default SRID, because it is more complex than just adding so I think for now we don't need to worry about the default srid .. and just use the same SRID for each backend for geo table on CI and probably you will not have any side effect. let me know if I am missing any point. |
|
I tried to force push 4326 SRID to omnisci, got double values in geo-coordinates, which aren't correctly compared that is a barrier for geo_contains function. It is possible a bug on omnisci side. |
|
mmm interesting .. have you opened an issue on omniscidb repo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks @semelianova for working on that!
Different SRIDs aren't supported in Omnisci backend since commit . Exception is occurred. Can't use transform func separately to change SRID in the database table so create new objects with the same default SRID.