Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: Move ObjectStoreRegistry to datafusion_execution crate #5478

Merged
merged 4 commits into from
Mar 9, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 4, 2023

Which issue does this PR close?

Part of #1754

Rationale for this change

I am trying to extract the physical_plan code into its own crate; and to do so I need to remove the circular dependencies between core --> datasource --> execution --> datasource

The ObjectStoreRegistry is used at runtime, so move it into the datafusion_execution crate

See more details in #1754 (comment)

What changes are included in this PR?

  1. Move Move ObjectStoreRegistry to datafusion_execution crate
  2. Separate some tests that mixed ListingTableUrl (part of datasource) and ObjectStoreRegistry (part of execution)

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

No, I added a pub use so this code movement should not affect users

@github-actions github-actions bot added the core Core DataFusion crate label Mar 4, 2023
@@ -103,3 +103,52 @@ impl From<ObjectMeta> for PartitionedFile {
}
}
}

#[cfg(test)]
mod tests {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests are of ListingTableUrl which is in core/src/datasource/listing I moved them here

@@ -255,34 +245,4 @@ mod tests {
ObjectStoreUrl::parse("s3://username:password@host:123/foo").unwrap_err();
assert_eq!(err.to_string(), "Execution error: ObjectStoreUrl must only contain scheme and authority, got: /foo");
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this into the datasource/listing module

@@ -26,9 +26,11 @@ use std::collections::HashMap;

use crate::datasource::datasource::TableProviderFactory;
use crate::datasource::listing_table_factory::ListingTableFactory;
use crate::datasource::object_store::ObjectStoreRegistry;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the point of this PR is to remove the dependency here on datasource

The other references to datasource are removed in #5477

@alamb alamb merged commit 55c7c4d into apache:main Mar 9, 2023
@alamb alamb deleted the alamb/object_store_reg_move branch March 9, 2023 18:20
@ursabot
Copy link

ursabot commented Mar 9, 2023

Benchmark runs are scheduled for baseline = 07b07d5 and contender = 55c7c4d. 55c7c4d is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants