-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Geo: add validator that only checks altitude #43893
Geo: add validator that only checks altitude #43893
Conversation
By default, we don't check ranges while indexing geo_shapes. As a result, it is possible to index geoshapes that contain contains coordinates outside of -90 +90 and -180 +180 ranges. Such geoshapes will break SQL and ML retrieval mechanism. This commit removes these restriction from the validator used in SQL and ML retrieval.
Pinging @elastic/es-analytics-geo |
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.
small nit in the javadoc, mostly LGTM
I have one question, which might be unrelated to this PR, but more of a general
testing consideration for GeometryVisitors. It feels like we should be testing
all calls to visit
for each of the different shapes. is this being done somewhere
that I am not aware of?
libs/geo/src/main/java/org/elasticsearch/geo/utils/StandardValidator.java
Outdated
Show resolved
Hide resolved
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.
thanks!
@elasticmachine test this please |
By default, we don't check ranges while indexing geo_shapes. As a result, it is possible to index geoshapes that contain contain coordinates outside of -90 +90 and -180 +180 ranges. Such geoshapes will currently break SQL and ML retrieval mechanism. This commit removes these restriction from the validator is used in SQL and ML retrieval.
Relates: elastic/elasticsearch#43893 This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.
Relates: elastic/elasticsearch#43893 This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely.
Relates: elastic/elasticsearch#43893 This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely. (cherry picked from commit 29d68b2)
Relates: elastic/elasticsearch#43893 This commit removes the bound checks on latitude and longitude on GeoLocation (and the derived GeoCoordinate), to allow values outside of the -90 to 90, and -180 to 180 ranges, respecitvely. (cherry picked from commit 29d68b2)
By default, we don't check ranges while indexing geo_shapes. As a
result, it is possible to index geoshapes that contain contain
coordinates outside of -90 +90 and -180 +180 ranges. Such geoshapes
will currently break SQL and ML retrieval mechanism. This commit removes
these restriction from the validator is used in SQL and ML retrieval.