Skip to content

Commit da17f5d

Browse files
committed
New capability for ::date casting
1 parent 1624022 commit da17f5d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ROW date="1985-01-01T00:00:00Z"::datetime, zero=0::datetime
7575
;
7676

7777
convertToDate
78-
required_capability: casting_operator
78+
required_capability: casting_operator_for_date
7979
ROW date="1985-01-01T00:00:00Z"::date, zero=0::date
8080
;
8181

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ public enum Cap {
112112
*/
113113
CASTING_OPERATOR,
114114

115+
/**
116+
* Support for the ::date casting operator
117+
*/
118+
CASTING_OPERATOR_FOR_DATE,
119+
115120
/**
116121
* Blocks can be labelled with {@link org.elasticsearch.compute.data.Block.MvOrdering#SORTED_ASCENDING} for optimizations.
117122
*/

0 commit comments

Comments
 (0)