From d34ab7accc2b70a570f57c4145d9c1a570642070 Mon Sep 17 00:00:00 2001 From: morrySnow <101034200+morrySnow@users.noreply.github.com> Date: Mon, 9 Oct 2023 14:40:57 +0800 Subject: [PATCH] [fix](Nereids) bind sink should use full base schema (#25153) --- .../java/org/apache/doris/nereids/rules/analysis/BindSink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java index 03aa3f700e..f5998c3620 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java @@ -268,7 +268,7 @@ public class BindSink implements AnalysisRuleFactory { private List bindTargetColumns(OlapTable table, List 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 -> {