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

Deduplicate function get_final_indices_from_shared_bitmap #14145

Merged

Conversation

lewiszlw
Copy link
Member

@lewiszlw lewiszlw commented Jan 16, 2025

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

We have two same functions get_final_indices_from_shared_bitmap in hash_join.rs and nested_loop_join.rs , remove one.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-expr Physical Expressions label Jan 16, 2025
Copy link
Contributor

@berkaysynnada berkaysynnada left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @lewiszlw

@@ -1112,6 +1113,14 @@ pub(crate) fn need_produce_result_in_final(join_type: JoinType) -> bool {
)
}

pub fn get_final_indices_from_shared_bitmap(
Copy link
Member

Choose a reason for hiding this comment

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

Is pub necessary here

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to pub(crate).

Copy link
Member

@jonahgao jonahgao left a comment

Choose a reason for hiding this comment

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

LGTM👍, thank you @lewiszlw

@jonahgao jonahgao merged commit dc22b3f into apache:main Jan 16, 2025
25 checks passed
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