[fix](multi-catalog)fix hive partition insert regression case (#35846)

from #35821
This commit is contained in:
slothever
2024-06-06 11:35:04 +08:00
committed by GitHub
parent b5a35b9cef
commit b6ab0c4e59
2 changed files with 17 additions and 10 deletions

View File

@ -105,6 +105,9 @@ public class UnboundTableSinkCreator {
isPartialUpdate, dmlCommandType, Optional.empty(),
Optional.empty(), plan);
} else if (curCatalog instanceof HMSExternalCatalog && !isAutoDetectPartition) {
if (!partitions.isEmpty()) {
throw new AnalysisException("Not support insert with partition spec in hive catalog.");
}
return new UnboundHiveTableSink<>(nameParts, colNames, hints, partitions,
dmlCommandType, Optional.empty(), Optional.empty(), plan);
} else if (curCatalog instanceof IcebergExternalCatalog && !isAutoDetectPartition) {