[fix](Nereids) bind sink should use full base schema (#25153)

This commit is contained in:
morrySnow
2023-10-09 14:40:57 +08:00
committed by GitHub
parent 1a6c2a3e84
commit d34ab7accc

View File

@ -268,7 +268,7 @@ public class BindSink implements AnalysisRuleFactory {
private List<Column> bindTargetColumns(OlapTable table, List<String> colsName, boolean isNeedSequenceCol) {
// if the table set sequence column in stream load phase, the sequence map column is null, we query it.
return colsName.isEmpty()
? table.getFullSchema().stream()
? table.getBaseSchema(true).stream()
.filter(c -> validColumn(c, isNeedSequenceCol))
.collect(ImmutableList.toImmutableList())
: colsName.stream().map(cn -> {