From fc1bad9a6b93a0de54435c1a26afa673dba956f8 Mon Sep 17 00:00:00 2001 From: morrySnow <101034200+morrySnow@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:44:29 +0800 Subject: [PATCH] [feature](Nereids) support query MATERIALIZED_VIEW type table (#25227) --- .../org/apache/doris/nereids/rules/analysis/BindRelation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 3542b44413..8a35ac4b4d 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 @@ -218,6 +218,7 @@ public class BindRelation extends OneAnalysisRuleFactory { CascadesContext cascadesContext) { switch (table.getType()) { case OLAP: + case MATERIALIZED_VIEW: return makeOlapScan(table, unboundRelation, tableQualifier); case VIEW: Plan viewPlan = parseAndAnalyzeView(((View) table).getDdlSql(), cascadesContext); @@ -242,7 +243,7 @@ public class BindRelation extends OneAnalysisRuleFactory { case ES_EXTERNAL_TABLE: return new LogicalEsScan(unboundRelation.getRelationId(), (EsExternalTable) table, tableQualifier); default: - throw new AnalysisException("Unsupported tableType:" + table.getType()); + throw new AnalysisException("Unsupported tableType " + table.getType()); } }