Skip to content

Commit 9c787dd

Browse files
committed
use date and date_nanos implicit casting capability instead
1 parent 251514c commit 9c787dd

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,12 +1215,7 @@ public enum Cap {
12151215
/**
12161216
* (Re)Added EXPLAIN command
12171217
*/
1218-
EXPLAIN(Build.current().isSnapshot()),
1219-
1220-
/**
1221-
* Enable yaml test for suggested cast properly
1222-
*/
1223-
SUGGESTED_CAST_YAML_TEST;
1218+
EXPLAIN(Build.current().isSnapshot());
12241219

12251220
private final boolean enabled;
12261221

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/160_union_types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ suggested_type:
913913
- method: POST
914914
path: /_query
915915
parameters: []
916-
capabilities: [suggested_cast_yaml_test]
917-
reason: "was using incorrect capabilities name and being skipped before"
916+
capabilities: [implicit_casting_date_and_date_nanos]
917+
reason: "date and date_nanos should no longer produce suggested_cast column"
918918

919919
- do:
920920
indices.create:

0 commit comments

Comments
 (0)