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/12/27 12:40:44 UTC
[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4740: Cleanup InformationSchema plumbing
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org