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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 75f497976c0296a7c58d029d57c486e2237cdd4b
Author: morrySnow <101034200+morrys...@users.noreply.github.com>
AuthorDate: Mon Apr 8 16:24:41 2024 +0800

    [opt](Nereids) auto fallback when query unsupport table type (#33357)
---
 .../java/org/apache/doris/nereids/rules/analysis/BindRelation.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindRelation.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindRelation.java
index e41c4283d60..bb768aba085 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindRelation.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindRelation.java
@@ -276,6 +276,12 @@ public class BindRelation extends OneAnalysisRuleFactory {
             case TEST_EXTERNAL_TABLE:
                 return new LogicalTestScan(unboundRelation.getRelationId(), 
table, tableQualifier);
             default:
+                try {
+                    // TODO: support other type table, such as ELASTICSEARCH
+                    
cascadesContext.getConnectContext().getSessionVariable().enableFallbackToOriginalPlannerOnce();
+                } catch (Exception e) {
+                    // ignore
+                }
                 throw new AnalysisException("Unsupported tableType " + 
table.getType());
         }
     }


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

Reply via email to