Slackbot
10/13/2023, 1:18 PMJohn Kowtko
10/13/2023, 1:39 PMTakaaki Nakama
10/13/2023, 1:54 PMuser_id is set as the secondary partition key, and because one historical server have all row for each user_id, it might be possible for it to be pushed down at the historical level.Takaaki Nakama
10/17/2023, 3:10 AMJohn Kowtko
10/17/2023, 11:42 AMTakaaki Nakama
10/19/2023, 2:25 AMThe link you referred to looks like it has an additional restriction that the GROUP BY has to be on the sharding key in order for it to be pushed down?Yes. It's a restriction, but I think grouping by shard key is common pattern. For example, with user behavior log table sharded by user_id, common question is
who are the people viewing this page repeatedly?
I think "perfect rollup" is done at ingestion time, not query time...
But I understand that druid also currently not support segment locality with shard key, so post-aggregation pushdown implementation is also not easy.
Thanks!