The is the query I am trying to execute:
POST _opendistro/_sql/_explain
{
"query": "SELECT `test-data1`.`event_type` AS `event_type` FROM `test-data1`
WHERE ((`test-data1`.`start_time_UTC` >= DATE('2020-10-17')))
GROUP BY `test-data1`.`event_type`"
}
I get the folloiwng error:
{
"error": {
"reason": "There was internal problem at backend",
"details": ">= function expected {[BYTE,BYTE],[SHORT,SHORT],[INTEGER,INTEGER],[LONG,LONG],[FLOAT,FLOAT],[DOUBLE,DOUBLE],[BOOLEAN,BOOLEAN],[STRING,STRING],[TIMESTAMP,TIMESTAMP],[DATE,DATE],[TIME,TIME],[DATETIME,DATETIME],[INTERVAL,INTERVAL],[STRUCT,STRUCT],[ARRAY,ARRAY]},
but get [TIMESTAMP,DATE]",
"type": "ExpressionEvaluationException"
},
"status": 503
}
start_time_UTC is a date type…
"start_time_UTC": { -
"type": "date"
},
This query is being launched thru Tableau. Experimental engine is enabled.. Elastic version 7.8.
Help will be appriciated.