You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/22 10:57:48 UTC

[GitHub] [arrow-datafusion] yjshen commented on a change in pull request #2052: Allow `CatalogProvider::register_catalog` to return an error

yjshen commented on a change in pull request #2052:
URL: https://github.com/apache/arrow-datafusion/pull/2052#discussion_r832038608



##########
File path: datafusion/src/execution/context.rs
##########
@@ -2978,14 +2982,18 @@ mod tests {
         let schema_a = MemorySchemaProvider::new();
         schema_a
             .register_table("table_a".to_owned(), test::table_with_sequence(1, 1)?)?;
-        catalog_a.register_schema("schema_a", Arc::new(schema_a));
+        catalog_a
+            .register_schema("schema_a", Arc::new(schema_a))
+            .unwrap();

Review comment:
       ```suggestion
               .register_schema("schema_a", Arc::new(schema_a))?;
   ```




-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org