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: deprecate unused index mod #14534

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

zhuqi-lucas
Copy link
Contributor

@zhuqi-lucas zhuqi-lucas commented Feb 7, 2025

Which issue does this PR close?

This is a minor change for remove unused index file and mod.

Are there any user-facing changes?

no

@github-actions github-actions bot added the physical-expr Physical Expressions label Feb 7, 2025
mod merge;
pub mod partial_sort;
pub mod sort;
pub mod sort_preserving_merge;
mod stream;
pub mod streaming_merge;

pub use index::RowIndex;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a public struct, we should deprecate it first https://datafusion.apache.org/library-user-guide/api-health.html

By the way, I'm curious is there a way we can detect such unused structs in CI 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @2010YOUY01 for review, this is a good point if we can detect such unused structs in CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cargo clippy -- -D dead_code

It seems it can detect the unused code, but we still use the struct in mod, so we can't detect those code.

@zhuqi-lucas zhuqi-lucas changed the title Minor: remove unused index mod Minor: deprecate unused index mod Feb 7, 2025
Copy link
Contributor

@2010YOUY01 2010YOUY01 left a comment

Choose a reason for hiding this comment

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

Great, thank you @zhuqi-lucas

@jayzhan211 jayzhan211 merged commit ab9fc20 into apache:main Feb 7, 2025
26 checks passed
@jayzhan211
Copy link
Contributor

Thanks @zhuqi-lucas @2010YOUY01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants