Re: Modify Calcite Planner in Hive to remove GROUP BY

2019-07-09 Thread Krzysztof Zarzycki
6, 2019 at 7:08 AM Haisheng Yuan > > > wrote: > > > > > >> Calcite has the rule that does the work. But you can't remove the > group > > by > > >> clause if the constant is the only group key. The semantic is > different > > >> without group key. Try it on empty relation, you will see

Modify Calcite Planner in Hive to remove GROUP BY

2019-06-26 Thread Krzysztof Zarzycki
Hello, While the question I have might look like regards to Hive, I believe is more about Calcite. I need to add a Calcite plan rule to Hive, that removes "Group by" clause when it groups by some constant value (GROUP BY TRUE more precisely). As far as I believe, the query semantically is the