Skip to content

Commit

Permalink
Make Hive expression pushdown future-proof
Browse files Browse the repository at this point in the history
Make code more generic so that when more expression pushdown
capabilities are added in the engine, Hive connector does not have to be
updated.
  • Loading branch information
findepi committed Oct 12, 2021
1 parent c34ff67 commit 68d35f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ private static void fillSupportedProjectedColumns(ConnectorExpression expression
}

// If the whole expression is not supported, look for a partially supported projection
if (expression instanceof FieldDereference) {
fillSupportedProjectedColumns(((FieldDereference) expression).getTarget(), supportedSubExpressions);
for (ConnectorExpression child : expression.getChildren()) {
fillSupportedProjectedColumns(child, supportedSubExpressions);
}
}

Expand Down

0 comments on commit 68d35f0

Please sign in to comment.