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

FEAT: Add ST_START_POINT and ST_END_POINT to PostGIS backend #2081

Merged
merged 6 commits into from
Sep 3, 2020

Conversation

ian-r-rose
Copy link
Contributor

This adds a couple of missing geospatial operations to the PostGIS backend.

@ian-r-rose ian-r-rose force-pushed the start-end-points branch 3 times, most recently from d0922bf to 0c327a0 Compare February 13, 2020 21:21
@xmnlab
Copy link
Contributor

xmnlab commented Feb 20, 2020

@ian-r-rose maybe the tests errors are related to the different approach of the 2 backends. IIRC OmniSciDB, for example, doesn't recognize that a geometry contains a point that touch the border ... and PostGreSQL recognize it. So maybe the data tests need to be changed to some data that don't touch the border.

@xmnlab
Copy link
Contributor

xmnlab commented Feb 20, 2020

but not sure yet if it is the case ... I would need to investigate that

@ian-r-rose
Copy link
Contributor Author

ian-r-rose commented Feb 20, 2020 via email

@ian-r-rose ian-r-rose force-pushed the start-end-points branch 2 times, most recently from b81c7c1 to 101e53a Compare February 24, 2020 20:33
@xmnlab
Copy link
Contributor

xmnlab commented Mar 2, 2020

@ian-r-rose I am talking to the OmniSci team to check this issue.

@ian-r-rose
Copy link
Contributor Author

Thanks @xmnlab!

@xmnlab xmnlab changed the title Add ST_START_POINT and ST_END_POINT to PostGIS backend FEAT: Add ST_START_POINT and ST_END_POINT to PostGIS backend Mar 2, 2020
@xmnlab xmnlab added feature Features or general enhancements geospatial labels Mar 6, 2020
@datapythonista
Copy link
Contributor

@xmnlab, @ian-r-rose is this still active?

If it is, can you please add a release note, and merge master?

@ian-r-rose
Copy link
Contributor Author

Hi @datapythonista, sorry, missed your note. Yes, I can update this PR.

@datapythonista
Copy link
Contributor

Thanks @ian-r-rose. Do you mind adding a release note in https://github.com/ibis-project/ibis/blob/master/docs/source/release/index.rst please? And also merge master again? We've got some problems with the CI that should be fixed now. Thanks!

@datapythonista
Copy link
Contributor

@ian-r-rose do you have time to add the release note and merge master?

@ian-r-rose
Copy link
Contributor Author

@datapythonista I'm remembering why this stalled in the first place -- there are some apparent differences in how the omniscidb geo functionality works and how postgis works with respect to boundary points. I was initially unable to find a test that worked for both of them.

Probably the best thing to do is to have separate tests for those two backends.

@datapythonista
Copy link
Contributor

If the difference is small, and it's just in the cases where the point is in the boundary, I think we can have a single test with an if. Otherwise I guess we'll be duplicating code.

In any case, that doesn't sound as a major blocker, I think should be easy to implement. Can you take care of it? Thanks!

@datapythonista
Copy link
Contributor

@ian-r-rose do you still want to move forward with this?

@ian-r-rose
Copy link
Contributor Author

@datapythonista I'm interested in getting this wrapped up, but I must say, I am having a really tough time getting the new test suite setup working. Is it documented anywhere?

@datapythonista
Copy link
Contributor

@datapythonista I'm interested in getting this wrapped up, but I must say, I am having a really tough time getting the new test suite setup working. Is it documented anywhere?

Good point. Things didn't change much, and there is still some refactoring pending, but you should be able to run tests for postgres with PYTEST_BACKENDS="postgres" python -m pytest -m "not hdfs and not udf" ibis/tests ibis/expr/tests

@pep8speaks
Copy link

pep8speaks commented Sep 2, 2020

Hello @ian-r-rose! 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-09-03 14:02:10 UTC

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. can you add a release note; pls ping on green.

@jreback jreback added this to the Next Bugfix Release milestone Sep 2, 2020
@jreback jreback added the postgres The PostgreSQL backend label Sep 2, 2020
@ian-r-rose
Copy link
Contributor Author

Thanks @datapythonista and @jreback

All green except for one skipped backend that seems to be unrelated.

@jreback jreback merged commit 2eab590 into ibis-project:master Sep 3, 2020
@jreback
Copy link
Contributor

jreback commented Sep 3, 2020

thanks @ian-r-rose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements postgres The PostgreSQL backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants