[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.
This commit is contained in:
Larisa Motova 2025-07-01 12:24:27 -10:00 committed by GitHub
parent 4b7de2fa30
commit 8b6acd06f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -913,8 +913,8 @@ suggested_type:
- method: POST
path: /_query
parameters: []
capabilities: [recommended_cast]
reason: "uses recommended_cast"
capabilities: [suggested_cast, implicit_casting_date_and_date_nanos]
reason: "date and date_nanos should no longer produce suggested_cast column"
- do:
indices.create:
@ -969,9 +969,7 @@ suggested_type:
- match: { columns.0.original_types: ["aggregate_metric_double", "long"] }
- match: { columns.0.suggested_cast: "aggregate_metric_double" }
- match: { columns.1.name: "my_date" }
- match: { columns.1.type: "unsupported" }
- match: { columns.1.original_types: ["date_nanos", "datetime"] }
- match: { columns.1.suggested_cast: "date_nanos" }
- match: { columns.1.type: "date_nanos" }
- match: { columns.2.name: "my_double" }
- match: { columns.2.type: "double" }
- is_false: columns.2.original_types