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/23 22:52:16 UTC
[GitHub] [arrow-datafusion] alamb opened a new pull request, #4722: Dynamic information_schema configuration and port more tests
alamb opened a new pull request, #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722
# Which issue does this PR close?
Part of https://github.com/apache/arrow-datafusion/issues/4495
# Rationale for this change
Currently the information schema can not be enabled after the `SessionState` is created and it can not be disabled.
This means I can't enable it programmatically in the sqllogicttests, and makes for a strange user experience where you can run `set datafusion.catalog.information_schema = true` but it is a noop
# What changes are included in this PR?
1. Enable / Disable information schema dynamically
2. Port some `information_schema` tests that rely on this behavior
# Are these changes tested?
Yes
# Are there any user-facing changes?
Users can now enable / disable the information schema
Example:
TODO
--
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
[GitHub] [arrow-datafusion] alamb commented on pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
alamb commented on PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722#issuecomment-1364374144
FYI @tustvold
--
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
[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
alamb commented on code in PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722#discussion_r1056681646
##########
datafusion/core/tests/sql/information_schema.rs:
##########
@@ -30,91 +30,6 @@ use rstest::rstest;
use super::*;
-#[tokio::test]
Review Comment:
I ported a few tests over to show the behavior -- I will port what else I can from this file as a follow on PR
##########
datafusion/core/tests/sqllogictests/src/main.rs:
##########
@@ -130,12 +130,6 @@ async fn context_for_test_file(file_name: &str) -> SessionContext {
setup::register_aggregate_tables(&ctx).await;
ctx
}
- "information_schema.slt" => {
Review Comment:
since this is now controllable dynamically, we do not have to hard code the sqltest runner
--
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
[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
alamb commented on code in PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722#discussion_r1056681111
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1546,17 +1550,10 @@ impl SessionState {
Self::register_default_schema(&config, &runtime, &default_catalog);
- let default_catalog: Arc<dyn CatalogProvider> = if config.information_schema()
- {
- Arc::new(CatalogWithInformationSchema::new(
- Arc::downgrade(&catalog_list),
- Arc::new(default_catalog),
- ))
- } else {
- Arc::new(default_catalog)
- };
- catalog_list
- .register_catalog(config.default_catalog.clone(), default_catalog);
+ catalog_list.register_catalog(
Review Comment:
The InformationSchema changes are now handed in `update_information_schema`
--
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
[GitHub] [arrow-datafusion] ursabot commented on pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722#issuecomment-1365214239
Benchmark runs are scheduled for baseline = fe3f01803506d72f562f9aa1285fcba193fea845 and contender = 34475bb8337e60fc987e18cac5418e37c24f3432. 34475bb8337e60fc987e18cac5418e37c24f3432 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/6ca4949ade614875916a21a16f0a2f53...bd61058050ba47f3b985a037e9f9a8c8/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/f13fa8b478ea45baa1f6e99d6933ff6f...8b9b464215624432afe6d5c7438f1dae/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/1de6cb1af01b4ff1b18d1a3dc3274a65...5add151800684b7383b339db8adbaf36/)
[Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/3573adaf1fa149cd800ef58868c2a8e4...714c4f8132b9483c9c4bd18672508459/)
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
--
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
[GitHub] [arrow-datafusion] alamb merged pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
alamb merged PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722
--
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
[GitHub] [arrow-datafusion] alamb commented on pull request #4722: Dynamic information_schema configuration and port more tests
Posted by GitBox <gi...@apache.org>.
alamb commented on PR #4722:
URL: https://github.com/apache/arrow-datafusion/pull/4722#issuecomment-1364524573
cc @mvanschellebeeck
--
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