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

Sergey Shelukhin commented on HIVE-3926:
----------------------------------------

I got around to this yesterday, the "null" values are actually put in the expr 
by PPRColumnExprProcessor in ExprProcFactory; it thus replaces non-partition 
columns, many functions, etc. compactExpr in Pruner then compacts the nulls.
The root problem is that ExprNodeColumnDesc doesn't distinguish partition and 
virtual columns, so partition columns also get there.
I will try to mitigate that in separate JIRA, however ExprNodeColumnDesc ctor 
w/isPartitionColOrVirtualCol arg is called in many places, so if they call 
cannot be easily replaced post-filtering can be done before expression gets to 
the pruner.

                
> PPD on virtual column of partitioned table is not working
> ---------------------------------------------------------
>
>                 Key: HIVE-3926
>                 URL: https://issues.apache.org/jira/browse/HIVE-3926
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>             Fix For: 0.12.0
>
>         Attachments: HIVE-3926.6.patch, HIVE-3926.D8121.1.patch, 
> HIVE-3926.D8121.2.patch, HIVE-3926.D8121.3.patch, HIVE-3926.D8121.4.patch, 
> HIVE-3926.D8121.5.patch
>
>
> {code}
> select * from src where BLOCK__OFFSET__INSIDE__FILE<100;
> {code}
> is working, but
> {code}
> select * from srcpart where BLOCK__OFFSET__INSIDE__FILE<100;
> {code}
> throws SemanticException. Disabling PPD makes it work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to