You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by pengcheng xiong <px...@hortonworks.com> on 2015/07/31 01:16:46 UTC

Review Request 36962: CBO: Calcite Operator To Hive Operator (Calcite Return Path): Groupby Optimizer assumes the schema can match after removing RS and GBY

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36962/
-----------------------------------------------------------

Review request for hive and Jesús Camacho Rodríguez.


Repository: hive-git


Description
-------

solution is to add a SEL in between


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 0f02737 
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java af54286 

Diff: https://reviews.apache.org/r/36962/diff/


Testing
-------


Thanks,

pengcheng xiong


Re: Review Request 36962: CBO: Calcite Operator To Hive Operator (Calcite Return Path): Groupby Optimizer assumes the schema can match after removing RS and GBY

Posted by pengcheng xiong <px...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36962/
-----------------------------------------------------------

(Updated Aug. 7, 2015, 6:45 p.m.)


Review request for hive and Jesús Camacho Rodríguez.


Changes
-------

address Jesus's comments.


Repository: hive-git


Description
-------

solution is to add a SEL in between


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 0f02737 
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java af54286 

Diff: https://reviews.apache.org/r/36962/diff/


Testing
-------


Thanks,

pengcheng xiong


Re: Review Request 36962: CBO: Calcite Operator To Hive Operator (Calcite Return Path): Groupby Optimizer assumes the schema can match after removing RS and GBY

Posted by pengcheng xiong <px...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36962/#review94421
-----------------------------------------------------------



ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 
<https://reviews.apache.org/r/36962/#comment149012>

    Sorry but I actually have a different opinion: (1) Hive is now complicated enough; putting some unused code here is just adding complexity and compilation overhead. (2) If the dev would like to use this kind of method in the future, he/she can implement it again. (3) This method is very specific, e.g., it will not do anything if there are more than 1 child at any level. It is not that generic.



ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java (line 573)
<https://reviews.apache.org/r/36962/#comment149011>

    True.


- pengcheng xiong


On Aug. 3, 2015, 11:30 p.m., pengcheng xiong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36962/
> -----------------------------------------------------------
> 
> (Updated Aug. 3, 2015, 11:30 p.m.)
> 
> 
> Review request for hive and Jesús Camacho Rodríguez.
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> solution is to add a SEL in between
> 
> 
> Diffs
> -----
> 
>   ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 0f02737 
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java af54286 
> 
> Diff: https://reviews.apache.org/r/36962/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> pengcheng xiong
> 
>


Re: Review Request 36962: CBO: Calcite Operator To Hive Operator (Calcite Return Path): Groupby Optimizer assumes the schema can match after removing RS and GBY

Posted by Jesús Camacho Rodríguez <jc...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36962/#review94382
-----------------------------------------------------------



ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 
<https://reviews.apache.org/r/36962/#comment148960>

    I wouldn't remove this method; although it is not used right now, it is generic enough to be used in the future.



ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java (line 573)
<https://reviews.apache.org/r/36962/#comment148959>

    The mismatch that can exist is only due to different column names, am I right?
    Then could we add an assert here:
    parent.getSchema().getSignature().size() == curr.getSchema().getSignature().size() ?


- Jesús Camacho Rodríguez


On Aug. 3, 2015, 11:30 p.m., pengcheng xiong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36962/
> -----------------------------------------------------------
> 
> (Updated Aug. 3, 2015, 11:30 p.m.)
> 
> 
> Review request for hive and Jesús Camacho Rodríguez.
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> solution is to add a SEL in between
> 
> 
> Diffs
> -----
> 
>   ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 0f02737 
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java af54286 
> 
> Diff: https://reviews.apache.org/r/36962/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> pengcheng xiong
> 
>


Re: Review Request 36962: CBO: Calcite Operator To Hive Operator (Calcite Return Path): Groupby Optimizer assumes the schema can match after removing RS and GBY

Posted by pengcheng xiong <px...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36962/
-----------------------------------------------------------

(Updated Aug. 3, 2015, 11:30 p.m.)


Review request for hive and Jesús Camacho Rodríguez.


Repository: hive-git


Description
-------

solution is to add a SEL in between


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 0f02737 
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GroupByOptimizer.java af54286 

Diff: https://reviews.apache.org/r/36962/diff/


Testing
-------


Thanks,

pengcheng xiong