This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new b3b054c9ff [fix](schema-change) fix schema_change failed because of
emtpy origin_column_name passed and fix ut fail on isFullyQualified (#10281)
b3b054c9ff is described below
commit b3b054c9ffd029f24a1fb17a247726faea343594
Author: Pxl <[email protected]>
AuthorDate: Tue Jun 21 19:53:58 2022 +0800
[fix](schema-change) fix schema_change failed because of emtpy
origin_column_name passed and fix ut fail on isFullyQualified (#10281)
---
.../src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java
b/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java
index 10055bdef9..c1a5144579 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java
@@ -423,8 +423,9 @@ public class SchemaChangeJobV2 extends AlterJobV2 {
.get(SchemaChangeHandler.SHADOW_NAME_PRFIX
+ column.getName());
if (newColumn.getType() != column.getType()) {
try {
- defineExprs.put(column.getName(),
- new
SlotRef(destSlotDesc).castTo(newColumn.getType()));
+ SlotRef slot = new SlotRef(destSlotDesc);
+ slot.setCol(column.getName());
+ defineExprs.put(column.getName(),
slot.castTo(newColumn.getType()));
} catch (AnalysisException e) {
throw new
AlterCancelException(e.getMessage());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]