Add support to VALUES aggregation for spatial types#122886
Add support to VALUES aggregation for spatial types#122886craigtaverner merged 21 commits intoelastic:mainfrom
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.
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.
Add a comment about how we're turning these off please.
|
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