Open DominicRicardAdgear opened 3 weeks ago
I was curious about this and see that the query works fine so long as you wrap it in an additional CTE. For example, this works:
with t as (select 'a string' as col)
, aa as (select
col,
upper(col)
from t)
select * from aa
where
upper(col) like UPPER('a%')
Affected Version
Druid V.30.0.0
Description
Running the following query yields an error:
Result:
Running the same comparator against a table does not result in an error. When doing
explain plan for
on the table query, the filter value is shown as being uppercased, which suggest druid is executing the UPPER function before building the plan.Result: