zddr commented on code in PR #56423:
URL: https://github.com/apache/doris/pull/56423#discussion_r2434401014
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/CollectRelation.java:
##########
@@ -189,8 +193,11 @@ private void collectFromUnboundRelation(CascadesContext
cascadesContext,
if (cascadesContext.getRewritePlan() instanceof UnboundDictionarySink)
{
table = ((UnboundDictionarySink)
cascadesContext.getRewritePlan()).getDictionary();
} else {
- table = cascadesContext.getConnectContext().getStatementContext()
- .getAndCacheTable(tableQualifier, tableFrom, unboundRelation);
+ StatementContext statementContext =
cascadesContext.getConnectContext().getStatementContext();
+ table = statementContext.getAndCacheTable(tableQualifier,
tableFrom, unboundRelation);
Review Comment:
StatementContext.tables is the previous code, both views and tables will
exist here
--
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]