Skip to content

Commit 43ba33e

Browse files
Block centroid tests in mixed clusters with 8.15 (elastic#138506)
In 8.16 there was an important fix to the rule for planning doc-values reading of spatial fields for aggregations. This fix did not go back to 8.15 and 8.14, and so any later version that has a mixed cluster with these older versions cannot run queries that perform spatial aggregations when the field does not have doc values. The newer versions will correctly block the doc-values loading, but the older version will still attempt to do this, causing a mismatch of block type, as seen in the issue at elastic#116945 and elastic#137334 The choice of `spatial_distance_pushdown_enhancements` is not an exact match for the change that fixed this issue, but the goal here is primarily to block tests in 8.14 and 8.15, and this capability was introduced in 8.16, and is conceptually related to the change that actually fixed this in 8.16. The actual fix for 8.15 can be seen in elastic#138437, but that will never get merged, because no further 8.15 releases will be made. Fixes elastic#116945 Fixes elastic#137334
1 parent a127a75 commit 43ba33e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/spatial.csv-spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ POINT (42.97109629958868 14.7552534006536) | 1
550550

551551
centroidFromAirportsAfterIntersectsCompoundPredicateNoDocValues
552552
required_capability: st_intersects
553+
required_capability: spatial_distance_pushdown_enhancements
553554

554555
FROM airports_no_doc_values
555556
| WHERE scalerank == 9 AND ST_INTERSECTS(location, TO_GEOSHAPE("POLYGON((42 14, 43 14, 43 15, 42 15, 42 14))")) AND country == "Yemen"
@@ -562,6 +563,7 @@ POINT (42.97109629958868 14.7552534006536) | 1
562563

563564
centroidFromAirportsAfterIntersectsCompoundPredicateNotIndexedNorDocValues
564565
required_capability: st_intersects
566+
required_capability: spatial_distance_pushdown_enhancements
565567

566568
FROM airports_not_indexed_nor_doc_values
567569
| WHERE scalerank == 9 AND ST_INTERSECTS(location, TO_GEOSHAPE("POLYGON((42 14, 43 14, 43 15, 42 15, 42 14))")) AND country == "Yemen"
@@ -574,6 +576,7 @@ POINT (42.97109629958868 14.7552534006536) | 1
574576

575577
centroidFromAirportsAfterIntersectsCompoundPredicateNotIndexed
576578
required_capability: st_intersects
579+
required_capability: spatial_distance_pushdown_enhancements
577580

578581
FROM airports_not_indexed
579582
| WHERE scalerank == 9 AND ST_INTERSECTS(location, TO_GEOSHAPE("POLYGON((42 14, 43 14, 43 15, 42 15, 42 14))")) AND country == "Yemen"

0 commit comments

Comments
 (0)