With the following index data:
POST test/_doc
{
"a": "2021-01-22T14:26:06.039Z"
}
the following functions fail to filter by the same value they return:
SELECT ISO_WEEK_OF_YEAR(a) AS x FROM test WHERE x=4
returns:
SELECT MINUTE_OF_DAY(a) AS x FROM test WHERE x=866
fails with:
"type" : "unsupported_operation_exception",
"reason" : "is there a format for it?"