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 must use  lhs.getDesc().setIsMaterialized(true), so analyze it 
first



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to