Skip to content

Commit 8b6acd0

Browse files
authored
[ES|QL] Fix suggested_cast yaml test (#130404)
The wrong capability name was being used in this yaml test causing it to be skipped. This commit fixes that.
1 parent 4b7de2f commit 8b6acd0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 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: [recommended_cast]
917-
reason: "uses recommended_cast"
916+
capabilities: [suggested_cast, 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:
@@ -969,9 +969,7 @@ suggested_type:
969969
- match: { columns.0.original_types: ["aggregate_metric_double", "long"] }
970970
- match: { columns.0.suggested_cast: "aggregate_metric_double" }
971971
- match: { columns.1.name: "my_date" }
972-
- match: { columns.1.type: "unsupported" }
973-
- match: { columns.1.original_types: ["date_nanos", "datetime"] }
974-
- match: { columns.1.suggested_cast: "date_nanos" }
972+
- match: { columns.1.type: "date_nanos" }
975973
- match: { columns.2.name: "my_double" }
976974
- match: { columns.2.type: "double" }
977975
- is_false: columns.2.original_types

0 commit comments

Comments
 (0)