wsjz commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1035444816


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -102,6 +124,25 @@ public static void 
setIcebergParams(ExternalFileScanNode.ParamCreateContext cont
         context.params.setTableFormatParams(tableFormatFileDesc);
     }
 
+    private static void setPathSelectConjunct(TIcebergFileDesc fileDesc, 
IcebergSplit icebergSplit)
+                throws UserException {
+        DeleteFileTempTable deleteFileTable = 
icebergSplit.getDeleteFileTable();
+        DescriptorTable descTbl = icebergSplit.getAnalyzer().getDescTbl();
+        TableRef ref = new TableRef(deleteFileTable.getTableName(), null, 
null);
+        BaseTableRef tableRef = new BaseTableRef(ref, deleteFileTable, 
deleteFileTable.getTableName());
+        tableRef.analyze(icebergSplit.getAnalyzer());
+        fileDesc.setTupleId(tableRef.getDesc().getId().asInt());
+        descTbl.computeStatAndMemLayout();
+
+        SlotRef lhs = new SlotRef(deleteFileTable.getTableName(), 
DeleteFileTempTable.DATA_FILE_PATH);
+        lhs.analyze(icebergSplit.getAnalyzer());

Review Comment:
   because we should use  lhs.getDesc().setIsMaterialized(true);



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to