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

[pruning] Add shortcut when all units have been pruned #8675

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

Ted-Jiang
Copy link
Member

@Ted-Jiang Ted-Jiang commented Dec 29, 2023

Which issue does this PR close?

Closes #8676.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Dec 29, 2023

/// Check all containers has rows that DEFINITELY DO NOT pass the predicate
fn check_all_pruned(&self) -> bool {
self.inner.iter().all(|&x| !x)
Copy link
Member Author

Choose a reason for hiding this comment

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

From above

    /// One element per container. Each element is
    /// * `true`: if the container has row that may pass the predicate
    /// * `false`: if the container has rows that DEFINITELY DO NOT pass the predicate

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @Ted-Jiang -- I was actually dreaming about this change last night 💤

We can probably add the same basic idea (skip subsequent range analysis) if the guarantees can rule out the row groups in @yahoNanJing PR #8669

@alamb
Copy link
Contributor

alamb commented Dec 29, 2023

Thank you @Ted-Jiang -- I was actually dreaming about this change last night 💤

We can probably add the same basic idea (skip subsequent range analysis) if the guarantees can rule out the row groups in @yahoNanJing PR #8669

Actually, upon more thought I think this code will directly apply to #8669 so no additional changes are required ✅

@comphead comphead merged commit 7f440e1 into apache:main Dec 30, 2023
23 checks passed
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.

[pruning] Add shortcut when all units have been pruned
3 participants