Slackbot
03/13/2023, 10:26 AMJohn Kowtko
03/13/2023, 10:52 AMkhajjiar trip
03/13/2023, 11:00 AMJohn Kowtko
03/13/2023, 8:12 PMwith tmp as (
select floor(__time to HOUR) Hr,
count(*) cnt
from "wikipedia_hr"
group by 1
)
select t.*
from tmp t
cross join (select 1 val)
where t.cnt > 1200
Adding a benign join on the final select forces a query type of "scan" ... I don't know if you can use your sketches with a scan query, but if not then I suggest following this train of logic and trying post-agg operations that will not allow the "having" filter to push back into your group by.
Let us know what you find out. Thx.Gian Merlino
03/13/2023, 11:09 PMGian Merlino
03/13/2023, 11:10 PMGian Merlino
03/13/2023, 11:12 PMmergeThreadLocal: true in your context, using Druid 25?
It's an experimental parameter that changes groupBy's merge on historicals to be thread-local instead of using a shared buffer, which reduces thread contention. We found it useful in certain cases and are wondering if we should make this on by default. Knowing if it helps you would help us make that decision 🙂khajjiar trip
03/15/2023, 4:44 AMGian Merlino
03/15/2023, 11:27 PMGian Merlino
03/15/2023, 11:27 PM