-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add geometry distance operator #1493
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
Conversation
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.
I merged it and corrected the problems. Did you forget to push some commits? I hope this does not offend you, but those problems needed to be addressed.
@@ -3110,6 +3110,8 @@ Expression RegularCondition() #RegularCondition: | |||
| <OP_CONCAT> { result = new JsonOperator("||"); } | |||
| "-" { result = new JsonOperator("-"); } | |||
| "-#" { result = new JsonOperator("-#"); } | |||
| <-> { result = new GeometryDistance("<->"); } |
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.
How did you test this line of code? It is definitely wrong. I corrected it.
@@ -586,4 +587,8 @@ public void visit(IsDistinctExpression isDistinctExpression) { | |||
isDistinctExpression.getRightExpression().accept(this); | |||
} | |||
|
|||
@Override | |||
public void visit(GeometryDistance geometryDistance) { | |||
visitOldOracleJoinBinaryExpression(geometryDistance, " <-> "); |
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.
This one deparses <#>
to <->
. I corrected it.
Could you provide an improvement to allow only <-> and <#> as operators. At the moment one could misuse |
Thanks for the fixes @wumpz. Is there an ETA on a release that'll include this? |
Not yet. Still, there are some issues there. Maybe I will speed up and release earlier. |
Now ... I delayed some open issues. |
Adding support for PostGIS geometry distance operators: