Open priyen opened 2 years ago
The exception is thrown from the scalar function version of the equals
, which means this operation is applied to an aggregation result?
Do you have the exactly same query working in the old version of Pinot? I don't think scalar function version cast
is supported in the old version, so maybe the old query is not applied to the aggregation result, but regular transform (applied to the column)?
Given a query as follows:
this throws with exception
-- Previously this worked fine in an older version of Pinot, if you change the 'week' = 'week' to 2 = 2, it works, so something is wrong with the literal parsing. This is inside a case statement, so string comparison should be supported.