Skip to content

[ES|QL] Support ::date in inline cast #116746

@fang-xing-esql

Description

@fang-xing-esql

Today, ::datetime is supported in inline cast, for example

row x="2024-11-13" | eval y = x::datetime

       x       |           y            
---------------+------------------------
2024-11-13     |2024-11-13T00:00:00.000Z

::date is not supported yet

row x="2024-11-13" | eval y = x::date

{
  "error" : {
    "root_cause" : [
      {
        "type" : "parsing_exception",
        "reason" : "line 1:35: Unknown data type named [date]"
      }
    ],
    "type" : "parsing_exception",
    "reason" : "line 1:35: Unknown data type named [date]"
  },
  "status" : 400
}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions