[feature](Nereids) support query MATERIALIZED_VIEW type table (#25227)

This commit is contained in:
morrySnow
2023-10-10 19:44:29 +08:00
committed by GitHub
parent 67ddfb1abc
commit fc1bad9a6b

View File

@ -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());
}
}