Skip to content

Minor: Clean up uses to point at real crates#6515

Merged
alamb merged 2 commits intoapache:mainfrom
alamb:alamb/cleanup_includes
Jun 2, 2023
Merged

Minor: Clean up uses to point at real crates#6515
alamb merged 2 commits intoapache:mainfrom
alamb:alamb/cleanup_includes

Conversation

@alamb
Copy link
Copy Markdown
Contributor

@alamb alamb commented Jun 1, 2023

Which issue does this PR close?

This is part of #1754

Rationale for this change

I want to decouple physical_plan from the core datafusion library -- I have already removed most of the actual dependencies, but there are still some dependencies that look real (because they do use crate::execution:... ) but are actual using a re-export.

What changes are included in this PR?

This updates the use statements in physical_plan to not use the backward compatible aliases but the actual new locations

Are these changes tested?

covered by existing tests

Are there any user-facing changes?

No

@github-actions github-actions Bot added the core Core DataFusion crate label Jun 1, 2023
use crate::execution::context::TaskContext;
use crate::execution::memory_pool::proxy::{RawTableAllocExt, VecAllocExt};
use crate::execution::memory_pool::{MemoryConsumer, MemoryReservation};
use datafusion_execution::TaskContext;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is the core of the change -- use the actual dependencies rather than backward compatible pub use's

pub mod runtime_env;
mod task;

pub use disk_manager::DiskManager;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved from the backwards compatibility crates

@alamb alamb marked this pull request as ready for review June 1, 2023 15:29
@alamb
Copy link
Copy Markdown
Contributor Author

alamb commented Jun 2, 2023

This one I think is non controversial so merging it in now

@alamb alamb merged commit 3466522 into apache:main Jun 2, 2023
@alamb alamb deleted the alamb/cleanup_includes branch June 2, 2023 16:25
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.

2 participants