[ 
https://issues.apache.org/jira/browse/HIVE-16775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033206#comment-16033206
 ] 

Ashutosh Chauhan commented on HIVE-16775:
-----------------------------------------

[~jcamachorodriguez] We are not generating values operator, rather we are 
trying to avoid generating one.
[~pxiong] I think Jesus suggestion of passing HiveRelBuilder is a good one and 
will let us avoid overriding the rule in totality. And since NullScanOptimizer 
optimizes limit 0 as well, we should get same effect as your current patch with 
minimal (and better) code changes.

> Fix HiveFilterAggregateTransposeRule when filter is always false
> ----------------------------------------------------------------
>
>                 Key: HIVE-16775
>                 URL: https://issues.apache.org/jira/browse/HIVE-16775
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-16775.01.patch, HIVE-16775.02.patch
>
>
> query4.q,query74.q
> {code}
> [7e490527-156a-48c7-aa87-8c80093cdfa8 main] ql.Driver: FAILED: 
> NullPointerException null
> java.lang.NullPointerException
>         at 
> org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter$QBVisitor.visit(ASTConverter.java:457)
>         at org.apache.calcite.rel.RelVisitor.go(RelVisitor.java:61)
>         at 
> org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter.convert(ASTConverter.java:110)
>         at 
> org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter.convertSource(ASTConverter.java:393)
>         at 
> org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter.convert(ASTConverter.java:115)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to