[fix](schema-change) Fix schema-change from non-null to null (#36389)

https://github.com/apache/doris/pull/32913
This commit is contained in:
Lightman
2024-06-26 20:20:50 +08:00
committed by GitHub
parent a6a84b8ecc
commit 23cf494b48
2 changed files with 19 additions and 6 deletions

View File

@ -443,7 +443,7 @@ public class SchemaChangeJobV2 extends AlterJobV2 {
if (indexColumnMap.containsKey(SchemaChangeHandler.SHADOW_NAME_PREFIX + column.getName())) {
Column newColumn = indexColumnMap.get(
SchemaChangeHandler.SHADOW_NAME_PREFIX + column.getName());
if (newColumn.getType() != column.getType()) {
if (!newColumn.getType().equals(column.getType())) {
try {
SlotRef slot = new SlotRef(destSlotDesc);
slot.setCol(column.getName());