gratus00 commented on code in PR #27644:
URL: https://github.com/apache/datafusion/pull/27644#discussion_r4714829729


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1523,10 +1523,10 @@ impl SessionContext {
         let maybe_schema = {
             let state = self.state.read();
             let resolved = state.resolve_table_ref(table_ref.clone());
-            state
-                .catalog_list()
-                .catalog(&resolved.catalog)
-                .and_then(|c| c.schema(&resolved.schema))
+            match state.catalog_list().catalog(&resolved.catalog) {
+                Some(catalog) => catalog.schema(&resolved.schema)?,

Review Comment:
   Check again please



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