SQL: Comparison beetween datetime field and string behaves inconsistently when used in filter vs. projection, grouping and ordering #77055
Labels
:Analytics/SQL
SQL querying
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
All kinds of comparisons between a datetime field and a string behave as expected in
WHERE
clauses but producenull
inSELECT
,GROUP BY
andORDER BY
clauses.A simple example is:
The query correctly produces one record but the
a
field should containtrue
.Another example with
GROUP BY
and<
:Expected result contains two groups.
The text was updated successfully, but these errors were encountered: