test(sqllogictest): stabilize parquet output_rows_skew with WITH ORDER#21898
Open
RatulDawar wants to merge 1 commit intoapache:mainfrom
Open
test(sqllogictest): stabilize parquet output_rows_skew with WITH ORDER#21898RatulDawar wants to merge 1 commit intoapache:mainfrom
RatulDawar wants to merge 1 commit intoapache:mainfrom
Conversation
CREATE EXTERNAL TABLE skew_parquet now uses WITH ORDER (x) so FileScanConfig preserves scan ordering and per-partition row counts stay deterministic with dynamic file scheduling. Refs discussion after PR apache#21351 / apache#21866. Made-with: Cursor
Contributor
|
Those tests are already stable, and I think the We have to fix the skipped one. The comments explains the root cause, though I'm not sure about the solution yet. |
Contributor
Author
|
Yes, I think I worded myself incorrectly. I wanted to improved the coverage as mentioned in the comment by @alamb. |
2010YOUY01
approved these changes
Apr 29, 2026
Contributor
2010YOUY01
left a comment
There was a problem hiding this comment.
Oh I see, this makes sense. Thank you.
It's not obvious why this fix works, let's add more comments.
| # Test parquet-only output_rows_skew metric (WITH ORDER(x) → preserve_order scan) | ||
| # -------------------------------------------- | ||
|
|
||
| statement ok |
Contributor
There was a problem hiding this comment.
Suggested change
| statement ok | |
| # Parquet supports dynamic work scheduling by default; per-partition data | |
| # sources might steal work from siblings, making row counts per partition | |
| # non-deterministic. Forcing `WITH ORDER` disables this behavior. | |
| statement ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
WITH ORDER (x)toCREATE EXTERNAL TABLE skew_parquet/skew_parquet_singleinexplain_analyze.sltsoFileScanConfigpreserves scan ordering (preserve_order), keeping per-partitionoutput_rowsstable under dynamic file scheduling (PR #21351).Related
explain_analyze.slt#21866 / Test flake inexplain_analyze.slt#21850.Testing
cargo test -p datafusion-sqllogictest --test sqllogictests -- explain_analyze(recommended before merge)Sqllogictest-only change.
Made with Cursor