-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add support to VALUES aggregation for spatial types #122886
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
Add support to VALUES aggregation for spatial types #122886
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Hi @craigtaverner, I've created a changelog YAML for you. |
| return isType(e, DataType::isSpatial, operationName, paramOrd, SPATIAL_TYPE_NAMES); | ||
| } | ||
|
|
||
| public static Expression.TypeResolution isNotSpatial(Expression e, String operationName, TypeResolutions.ParamOrdinal paramOrd) { |
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 function was never used anyway
…search into agg_values_spatial
|
Warning It looks like this PR modifies one or more |
|
Warning It looks like this PR modifies one or more |
We run older yaml tests, but they make assertions that are not longer valid and so we need to exclude those tests using task.skipTest
|
Warning It looks like this PR modifies one or more |
|
|
||
| protected static void renderDocs(String name) throws IOException { | ||
| if (System.getProperty("generateDocs") == null) { | ||
| if (System.getProperty("generateDocs") == null || true) { |
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.
Add a comment about how we're turning these off please.
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.
Done
|
Since this disabled docs generation, I've changed the backport to 9.0 only. We can decide to backport this to an 8.x as a bug-fix if we feel that's necessary, using a new PR without any docs generation changes. For now it's 9.0 and 9.1 only. |
…search into agg_values_spatial
…search into agg_values_spatial
💚 Backport successful
|
The original work at elastic#106065 did not support geospatial types with this comment: > I made this work for everything but geo_point and cartesian_point because I'm not 100% sure how to integrate with those. We can grab those in a follow up. The geospatial types should be possible to collect using the VALUES aggregation with similar behavior to the `ST_COLLECT` OGC function, based on the Elasticsearch convention that treats multi-value geospatial fields as behaving similarly to any geometry collection. So this implementation is a trivial addition to the existing values types support.
The original work at #106065 did not support geospatial types with this comment: > I made this work for everything but geo_point and cartesian_point because I'm not 100% sure how to integrate with those. We can grab those in a follow up. The geospatial types should be possible to collect using the VALUES aggregation with similar behavior to the `ST_COLLECT` OGC function, based on the Elasticsearch convention that treats multi-value geospatial fields as behaving similarly to any geometry collection. So this implementation is a trivial addition to the existing values types support.
…127627) * Add support to VALUES aggregation for spatial types (#122886) The original work at #106065 did not support geospatial types with this comment: > I made this work for everything but geo_point and cartesian_point because I'm not 100% sure how to integrate with those. We can grab those in a follow up. The geospatial types should be possible to collect using the VALUES aggregation with similar behavior to the `ST_COLLECT` OGC function, based on the Elasticsearch convention that treats multi-value geospatial fields as behaving similarly to any geometry collection. So this implementation is a trivial addition to the existing values types support. * Fix docs
The original work at #106065 did not support geospatial types with this comment:
The geospatial types should be possible to collect using the VALUES aggregation with similar behavior to the
ST_COLLECTOGC function, based on the Elasticsearch convention that treats multi-value geospatial fields as behaving similarly to any geometry collection. So this implementation is a trivial addition to the existing values types support.Fixes #122413