duongcongtoai commented on code in PR #16186:
URL: https://github.com/apache/datafusion/pull/16186#discussion_r2107708646


##########
datafusion/sql/src/planner.rs:
##########
@@ -235,18 +235,27 @@ impl PlannerContext {
     }
 
     // Return a reference to the outer query's schema
-    pub fn outer_query_schema(&self) -> Option<&DFSchema> {
-        self.outer_query_schema.as_ref().map(|s| s.as_ref())
+    pub fn outer_query_schema(&self) -> Vec<&DFSchema> {
+        self.outer_query_schema
+            .iter()
+            .map(|sc| sc.as_ref())
+            .collect()
     }
 
     /// Sets the outer query schema, returning the existing one, if
     /// any
-    pub fn set_outer_query_schema(

Review Comment:
   done, old methods were deprecated



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