You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL: change the way unsupported data types fields are handled (#50823)
The hierarchy of fields/sub-fields under a field that is of an
unsupported data type will be marked as unsupported as well. Until this
change, the behavior was to set the unsupported data type field's
hierarchy as empty.
Example, considering the following hierarchy of fields/sub-fields
a -> b -> c -> d, if b would be of type "foo", then b, c and d will
be marked as unsupported.
(cherry picked from commit 7adb286)
Copy file name to clipboardExpand all lines: x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/analysis/analyzer/VerifierErrorMessagesTests.java
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -482,19 +482,33 @@ public void testGroupByScalarFunctionWithAggOnTarget() {
482
482
}
483
483
484
484
publicvoidtestUnsupportedType() {
485
-
assertEquals("1:8: Cannot use field [unsupported] type [ip_range] as is unsupported",
485
+
assertEquals("1:8: Cannot use field [unsupported] with unsupported type [ip_range]",
486
486
error("SELECT unsupported FROM test"));
487
487
}
488
488
489
489
publicvoidtestUnsupportedStarExpansion() {
490
-
assertEquals("1:8: Cannot use field [unsupported] type [ip_range] as is unsupported",
490
+
assertEquals("1:8: Cannot use field [unsupported] with unsupported type [ip_range]",
491
491
error("SELECT unsupported.* FROM test"));
492
492
}
493
493
494
494
publicvoidtestUnsupportedTypeInFilter() {
495
-
assertEquals("1:26: Cannot use field [unsupported] type [ip_range] as is unsupported",
495
+
assertEquals("1:26: Cannot use field [unsupported] with unsupported type [ip_range]",
496
496
error("SELECT * FROM test WHERE unsupported > 1"));
0 commit comments