Skip to content

Commit

Permalink
[BugFix] Fix missing iceberg tableFullMORParams in the PruneHDFSScanC…
Browse files Browse the repository at this point in the history
…olumnRule (#53012)
  • Loading branch information
Youngwb authored Nov 20, 2024
1 parent 9c0d29f commit 36c0866
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ public List<OptExpression> transform(OptExpression input, OptimizerContext conte
newScanOperator.setTableVersionRange(scanOperator.getTableVersionRange());

if (newScanOperator.getOpType() == OperatorType.LOGICAL_ICEBERG_SCAN) {
((LogicalIcebergScanOperator) newScanOperator).setMORParam(
((LogicalIcebergScanOperator) scanOperator).getMORParam());
LogicalIcebergScanOperator newIcebergScanOp = (LogicalIcebergScanOperator) newScanOperator;
newIcebergScanOp.setMORParam(((LogicalIcebergScanOperator) scanOperator).getMORParam());
newIcebergScanOp.setTableFullMORParams(((LogicalIcebergScanOperator) scanOperator).
getTableFullMORParams());
}

return Lists.newArrayList(new OptExpression(newScanOperator));
Expand Down

0 comments on commit 36c0866

Please sign in to comment.