[bugfix](iceberg)Fixed missing type of iceberg table for timetravel for 2.1 (#36048)

bp:  #36047
This commit is contained in:
wuwenchi
2024-06-07 21:13:56 +08:00
committed by GitHub
parent bd6b913e00
commit 240d8938f8

View File

@ -590,6 +590,9 @@ public class PhysicalPlanTranslator extends DefaultPlanVisitor<PlanFragment, Pla
}
} else if (table instanceof IcebergExternalTable) {
scanNode = new IcebergScanNode(context.nextPlanNodeId(), tupleDescriptor, false);
if (fileScan.getTableSnapshot().isPresent()) {
((IcebergScanNode) scanNode).setTableSnapshot(fileScan.getTableSnapshot().get());
}
} else if (table instanceof PaimonExternalTable) {
scanNode = new PaimonScanNode(context.nextPlanNodeId(), tupleDescriptor, false);
} else if (table instanceof MaxComputeExternalTable) {