gratus00 commented on code in PR #27644:
URL: https://github.com/apache/datafusion/pull/27644#discussion_r4714835250
##########
datafusion/catalog/src/memory/catalog.rs:
##########
@@ -111,11 +111,14 @@ impl CatalogProvider for MemoryCatalogProvider {
name: &str,
cascade: bool,
) -> Result<Option<Arc<dyn SchemaProvider>>> {
- if let Some(schema) = self.schema(name) {
- let table_names = schema.table_names();
+ if let Some(schema) = self.schema(name)? {
+ let table_names = schema.table_names()?;
Review Comment:
Ah, good catch; I added `memory_catalog_drop_schema_that_cannot_list_tables`
which should address the edge case you outlined
--
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]