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

Re: Modify Calcite Planner in Hive to remove GROUP BY

2019-06-26 Thread Vineet Garg
gt;> without group key. Try it on empty relation, you will see the > difference. > >> > >> > >> > >> > >> > >> Thanks~ > >> Haisheng > >> Yuan-- > >

Re: Modify Calcite Planner in Hive to remove GROUP BY

2019-06-26 Thread Julian Hyde
without group key. Try it on empty relation, you will see the difference. >> >> >> >> >> >> Thanks~ >> Haisheng >> Yuan------ >> 发件人:Krzysztof Zarzycki >> 日 期:2019年06月26日 21:52:41 >> 收件人: >> 主 题:Modify Calcite Planner in

Re: Modify Calcite Planner in Hive to remove GROUP BY

2019-06-26 Thread Vineet Garg
antic is different > without group key. Try it on empty relation, you will see the difference. > > > > > > Thanks~ > Haisheng > Yuan-- > 发件人:Krzysztof Zarzycki > 日 期:2019年06月26日 21:52:41 > 收件人

回复:Modify Calcite Planner in Hive to remove GROUP BY

2019-06-26 Thread Haisheng Yuan
-- 发件人:Krzysztof Zarzycki 日 期:2019年06月26日 21:52:41 收件人: 主 题:Modify Calcite Planner in Hive to remove GROUP BY 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&qu

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