From aeb242fb837dca572fa6acaa7b768eecbc8c13f6 Mon Sep 17 00:00:00 2001 From: morningman Date: Thu, 6 Jul 2023 23:20:41 +0800 Subject: [PATCH] 1 --- .../apache/doris/planner/external/FileQueryScanNode.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java index 39727a6f048e381..d366cbe90e7bb8d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java @@ -81,7 +81,7 @@ /** * FileQueryScanNode for querying the file access type of catalog, now only support - * hive,hudi, iceberg and TVF. + * hive, hudi, iceberg and TVF. */ public abstract class FileQueryScanNode extends FileScanNode { private static final Logger LOG = LogManager.getLogger(FileQueryScanNode.class); @@ -163,6 +163,10 @@ protected void initSchemaParams() throws UserException { @Override public void updateRequiredSlots(PlanTranslatorContext planTranslatorContext, Set requiredByProjectSlotIdSet) throws UserException { + updateRequiredSlots(); + } + + private void updateRequiredSlots() throws UserException { params.unsetRequiredSlots(); for (SlotDescriptor slot : desc.getSlots()) { if (!slot.isMaterialized()) { @@ -196,6 +200,7 @@ public void finalizeForNereids() throws UserException { // Create scan range locations and the statistics. protected void doFinalize() throws UserException { createScanRangeLocations(); + updateRequiredSlots(); } private void setColumnPositionMapping() @@ -415,3 +420,4 @@ protected static Optional getTFileType(String location) { return Optional.empty(); } } +