Open Jackie-Jiang opened 10 months ago
Assigning this to @tarun11Mavani as he is helping us on this! This has been a tech-debt for us from quite some time as discussed in this issue - https://github.com/apache/pinot/issues/11866#issuecomment-1789351098
@tibrewalpratik17 please assign this to me
Currently queries such as
SELECT a, b FROM table GROUP BY a, b
is rewritten toSELECT DISTINCT a, b FROM table
and we solve it as distinct query. But queries such asSELECT a + b FROM table GROUP BY a, b
should not be solved as distinct because query semantic is different. We stopped rewriting such queries in #9605, and they are no longer supported. We should support this query natively without query rewrite