Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: zhangqiang <[email protected]>
  • Loading branch information
sevev committed May 10, 2024
1 parent b28bcfc commit c6e0fa5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ private boolean processAddColumns(AddColumnsClause alterClause, OlapTable olapTa
}
}

boolean ligthSchemaChange = olapTable.enableFastSchemaEvolution();
boolean fastSchemaEvolution = olapTable.enableFastSchemaEvolution();
if (alterClause.getGeneratedColumnPos() == null) {
for (Column column : columns) {
ligthSchemaChange &= addColumnInternal(olapTable, column, null, targetIndexId, baseIndexId, indexSchemaMap,
fastSchemaEvolution &= addColumnInternal(olapTable, column, null, targetIndexId, baseIndexId, indexSchemaMap,
newColNameSet);
}
} else {
Expand All @@ -251,10 +251,10 @@ private boolean processAddColumns(AddColumnsClause alterClause, OlapTable olapTa
addColumnInternal(olapTable, column, alterClause.getGeneratedColumnPos(),
targetIndexId, baseIndexId, indexSchemaMap, newColNameSet);
// add a generated column need to rewrite data, can not use light schema change
ligthSchemaChange = false;
fastSchemaEvolution = false;
}
}
return ligthSchemaChange;
return fastSchemaEvolution;
}

/**
Expand Down

0 comments on commit c6e0fa5

Please sign in to comment.