pick from master #33353
This commit is contained in:
@ -111,10 +111,18 @@ public class UnboundTableSinkCreator {
|
||||
return new UnboundIcebergTableSink<>(nameParts, colNames, hints, partitions,
|
||||
dmlCommandType, Optional.empty(), Optional.empty(), plan);
|
||||
}
|
||||
// TODO: we need to support insert into other catalog
|
||||
try {
|
||||
if (ConnectContext.get() != null) {
|
||||
ConnectContext.get().getSessionVariable().enableFallbackToOriginalPlannerOnce();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// ignore this.
|
||||
}
|
||||
throw new AnalysisException(
|
||||
"Auto overwrite data to " + curCatalog.getClass().getSimpleName() + " is not supported."
|
||||
(isOverwrite ? "insert overwrite" : "insert") + " data to " + curCatalog.getClass().getSimpleName()
|
||||
+ " is not supported."
|
||||
+ (isAutoDetectPartition
|
||||
? " PARTITION(*) is only supported in overwrite partition for OLAP table"
|
||||
: ""));
|
||||
? " PARTITION(*) is only supported in overwrite partition for OLAP table" : ""));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user