Scott deRegt
07/12/2022, 6:55 PMCASE ...
statements. I found this thread that case statements will not work with star tree - since the thread is a couple of years old just wanted to double-check if this is still the case?Mayank
case..
statements (by say creating derived columns), then that would work.Scott deRegt
07/12/2022, 7:23 PMcase
statements.
i.e.
select
max(case when source = 'x' and date = '2022-07-01' then foo else 0 end),
sum(case when source = 'y' and date > '2022-06-25' and date <= '2022-06-30' then bar else 0 end)
...
from ...
where <where criteria using indexed columns>
We are seeing quite poor cold-start performance on this type of query.
Is this data model / query pattern an antipattern in pinot? It seems like relying heavily on case
statements takes away the ability to use star-tree index, which is really limiting what we can do on the index tuning side.
Some of our case
logic can be created as derived cols, but the above is example where I don't see this as an option w/o splitting into multiple queries.Kishore G
Kishore G
Kishore G
Scott deRegt
07/12/2022, 8:07 PMScott deRegt
07/12/2022, 8:12 PM