Skip to content

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

@Ted-Jiang Ted-Jiang requested review from alamb and waynexia December 29, 2023 08:42
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 ✅

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