alamb commented on code in PR #4740:
URL: https://github.com/apache/arrow-datafusion/pull/4740#discussion_r1057656363
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1721,6 +1653,12 @@ impl SessionState {
table_ref: impl Into<TableReference<'a>>,
) -> Result<Arc<dyn SchemaProvider>> {
let resolved_ref = self.resolve_table_ref(table_ref);
+ if self.config.information_schema() && resolved_ref.schema ==
INFORMATION_SCHEMA {
+ return Ok(Arc::new(InformationSchemaProvider::new(
Review Comment:
This is cool -- it makes the information schema provider on demand 👍
--
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]