kasakrisz commented on a change in pull request #1811:
URL: https://github.com/apache/hive/pull/1811#discussion_r564598010
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/ppd/OpProcFactory.java
##########
@@ -712,14 +714,47 @@ private void applyFilterTransitivity(JoinOperator join,
int targetPos, OpWalkerI
if (!sourceAliases.contains(entry.getKey())) {
continue;
}
+
+ Set<ExprNodeColumnDesc> columnsInPredicates = null;
+ if (HiveConf.getBoolVar(owi.getParseContext().getConf(),
Review comment:
Done
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/ppd/OpProcFactory.java
##########
@@ -712,14 +714,47 @@ private void applyFilterTransitivity(JoinOperator join,
int targetPos, OpWalkerI
if (!sourceAliases.contains(entry.getKey())) {
continue;
}
+
+ Set<ExprNodeColumnDesc> columnsInPredicates = null;
+ if (HiveConf.getBoolVar(owi.getParseContext().getConf(),
+ HiveConf.ConfVars.HIVEPPD_RECOGNIZE_COLUMN_EQUALITIES)) {
+ columnsInPredicates = owi.getColumnsInPredicates().get(source);
+ if (columnsInPredicates == null) {
+ columnsInPredicates =
collectColumnsInPredicates(entry.getValue());
+ owi.getColumnsInPredicates().put(source, columnsInPredicates);
+ }
+ }
+
for (ExprNodeDesc predicate : entry.getValue()) {
ExprNodeDesc backtrack = ExprNodeDescUtils.backtrack(predicate,
join, source);
if (backtrack == null) {
continue;
}
ExprNodeDesc replaced = ExprNodeDescUtils.replace(backtrack,
sourceKeys, targetKeys);
if (replaced == null) {
- continue;
+ if (!HiveConf.getBoolVar(owi.getParseContext().getConf(),
Review comment:
Done
----------------------------------------------------------------
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]