Can you share you index mapping ?
and may be try to convert to VARCHAR before comparing
POST _sql?format=txt
{
"query": """
SELECT CAST("@timestamp" AS DATE), CURRENT_DATE() from "my-events"
WHERE CONVERT(CAST("@timestamp" AS DATE), VARCHAR) = CONVERT(CURRENT_DATE(), VARCHAR)
"""
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.