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

Simplify parquet filter predicate test, fix Page Filtering Incorrectly Handles Pages with Different Row Counts #4743

Merged
merged 9 commits into from
Dec 28, 2022

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Dec 27, 2022

Which issue does this PR close?

Closes #4744

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 27, 2022

let mut set = tokio::task::JoinSet::new();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reverted the JoinSet change as the test now runs in under 2 seconds, and it made debugging test failures difficult as the stack trace pointed to where the JoinHandle is unwrapped, not the case that actually failed. It also made the failures non-deterministic, which was also annoying

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me. It also takes me some time to figure out which sub-case fails. If the time is greatly shortened, I agree we need not pay for the parallel

@tustvold tustvold changed the title Simplify filter predicate test Simplify parquet filter predicate test Dec 27, 2022
@@ -251,7 +251,7 @@ fn prune_pages_in_one_row_group(
let mut sum_row = *row_vec.first().unwrap();
let mut selected = *values.first().unwrap();
trace!("Pruned to to {:?} using {:?}", values, pruning_stats);
for (i, &f) in values.iter().skip(1).enumerate() {
for (i, &f) in values.iter().enumerate().skip(1) {
Copy link
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 cause of #4744

@tustvold tustvold marked this pull request as ready for review December 27, 2022 13:35
@tustvold tustvold force-pushed the simplify-filter-predicate-test branch from 36dcfd0 to 6654e44 Compare December 27, 2022 13:35
@tustvold tustvold requested a review from alamb December 27, 2022 13:36
@alamb alamb changed the title Simplify parquet filter predicate test Simplify parquet filter predicate test, fix Page Filtering Incorrectly Handles Pages with Different Row Counts Dec 27, 2022
@alamb alamb requested a review from Ted-Jiang December 27, 2022 13:55
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 @tustvold


let mut set = tokio::task::JoinSet::new();
Copy link
Contributor

Choose a reason for hiding this comment

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

.with_filter(
conjunction(vec![
col("request_bytes").gt(lit(2000000000)),
col("client_addr").eq(lit("58.242.143.99")),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the case of a pruning on a non equality predicate on a non dictionary encoded column covered elsewhere?

Copy link
Member

@Ted-Jiang Ted-Jiang left a comment

Choose a reason for hiding this comment

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

Thanks for this 👍
Suffered covid these days , sorry for the late respond.

@tustvold
Copy link
Contributor Author

I'm looking into the other test failures, I'm hoping the tests are wrong

// vec.push(RowSelector::skip(894));
// vec.push(RowSelector::select(339));
// vec.push(RowSelector::skip(3330));
// `month = 1` or `month = 2` from the page index should create below RowSelection
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests were just wrong, I have fixed them using apache/arrow-rs#3405 to verify that they are correct

@tustvold tustvold merged commit 40bf559 into apache:master Dec 28, 2022
@ursabot
Copy link

ursabot commented Dec 28, 2022

Benchmark runs are scheduled for baseline = 3abbffb and contender = 40bf559. 40bf559 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

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.

Page Filtering Incorrectly Handles Pages with Different Row Counts
5 participants