This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new f0971c3c43e [bugfix](iceberg)Fixed missing type of iceberg table for 
timetravel (#36047)
f0971c3c43e is described below

commit f0971c3c43e36887e05e1f4c02edf724c6c36ed4
Author: wuwenchi <[email protected]>
AuthorDate: Wed Jun 12 14:45:26 2024 +0800

    [bugfix](iceberg)Fixed missing type of iceberg table for timetravel (#36047)
    
    Related:  #34681
    
    #34681 supports the time function, but supports the type
    `HMSExternalTable`.
    
    This PR add support for `IcebergExternalTable` type.
---
 .../apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
index 2c77385e9e8..2ef4fc1debf 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
@@ -593,6 +593,9 @@ public class PhysicalPlanTranslator extends 
DefaultPlanVisitor<PlanFragment, Pla
             }
         } else if (table instanceof IcebergExternalTable) {
             scanNode = new IcebergScanNode(context.nextPlanNodeId(), 
tupleDescriptor, false);
+            if (fileScan.getTableSnapshot().isPresent()) {
+                ((IcebergScanNode) 
scanNode).setTableSnapshot(fileScan.getTableSnapshot().get());
+            }
         } else if (table instanceof PaimonExternalTable) {
             scanNode = new PaimonScanNode(context.nextPlanNodeId(), 
tupleDescriptor, false);
         } else if (table instanceof TrinoConnectorExternalTable) {


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

Reply via email to