pvary commented on a change in pull request #2137:
URL: https://github.com/apache/hive/pull/2137#discussion_r611564631
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
##########
@@ -890,6 +894,24 @@ public static void pushFilters(JobConf jobConf,
TableScanOperator tableScan,
Utilities.setColumnTypeList(jobConf, tableScan);
// push down filters
ExprNodeGenericFuncDesc filterExpr = scanDesc.getFilterExpr();
+ String pruningFilter = jobConf.get(TableScanDesc.PARTITION_PRUNING_FILTER);
+ // If we have a pruning filter then combine it with the original
+ if (pruningFilter != null) {
+ ExprNodeGenericFuncDesc pruningExpr =
SerializationUtilities.deserializeExpression(pruningFilter);
+ if (filterExpr != null) {
+ // Combine the 2 filters with AND
+ filterExpr = new
ExprNodeGenericFuncDesc(TypeInfoFactory.booleanTypeInfo, new GenericUDFOPAnd(),
"and",
Review comment:
Thanks for pointing this out!
Used `and`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]