Jibing-Li commented on code in PR #21953:
URL: https://github.com/apache/doris/pull/21953#discussion_r1267646960


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/CascadesContext.java:
##########
@@ -388,19 +389,24 @@ private Set<UnboundRelation> 
extractUnboundRelationFromCTE(LogicalCTE<?> cte) {
         return relations;
     }
 
-    private Table getTable(UnboundRelation unboundRelation) {
+    private TableIf getTable(UnboundRelation unboundRelation) {
         List<String> nameParts = unboundRelation.getNameParts();
         switch (nameParts.size()) {
             case 1: { // table
+                String ctlName = 
getConnectContext().getEnv().getCurrentCatalog().getName();

Review Comment:
   NULL case has been handled in the getCurrentCatalog and getDatabase function.



-- 
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]

Reply via email to