Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,13 @@ public PlanFragment visitPhysicalFileScan(PhysicalFileScan fileScan, PlanTransla
fileScan.getTableSample().get().sampleValue, fileScan.getTableSample().get().seek));
}
break;
case HUDI:
// HUDI table should be handled by visitPhysicalHudiScan, not here.
// If we reach here, it means LogicalHudiScan was incorrectly converted to
// PhysicalFileScan.
throw new RuntimeException("HUDI table should use PhysicalHudiScan instead of PhysicalFileScan. "
+ "This indicates a bug in the optimizer rules. "
+ "FileScan class: " + fileScan.getClass().getSimpleName());
default:
throw new RuntimeException("do not support DLA type " + ((HMSExternalTable) table).getDlaType());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ public LogicalFileScan withOperativeSlots(Collection<Slot> operativeSlots) {
operativeSlots, virtualColumns, groupExpression, Optional.of(getLogicalProperties()), cachedOutputs);
}

@Override
public LogicalFileScan withCachedOutput(List<Slot> cachedOutputs) {
return new LogicalHudiScan(relationId, (ExternalTable) table, qualifier,
selectedPartitions, tableSample, tableSnapshot, scanParams, incrementalRelation,
operativeSlots, virtualColumns, groupExpression, Optional.of(getLogicalProperties()),
Optional.of(cachedOutputs));
}

/**
* Set scan params for incremental read
*
Expand Down
Loading