Repository navigation
Disable external sorting in 03634_autopr_output_bytes_estimation - #122367
Merged
Merged
Conversation
With the randomized `max_bytes_before_external_sort` the `query_43` sort spills, and with the randomized `prefer_external_sort_block_bytes=1` the merged output of `MergeSortingTransform` comes out in blocks of 128 rows. The runtime dataflow estimator samples these small blocks, which compress several times worse under `ZSTD(3)` than full-size ones, so the `URL` output estimate grows from ~17 MB to ~56..61 MB - beyond the 2.5x tolerance around the 22000000 recalibrated in #108786. All four `query_43` failures in the last 30 days had both settings. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=06108f98a54bf74cbc5e5e52d327e9c2e4ae6130&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_release%2C%20parallel%2C%202%2F2%29 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [970ae6f] Summary: ✅ AI ReviewSummaryThis PR pins Final Verdict✅ No findings. |
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.
Fixes the flaky
03634_autopr_output_bytes_estimationfailure onquery_43(query_43 61282786 22000000):https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=06108f98a54bf74cbc5e5e52d327e9c2e4ae6130&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_release%2C%20parallel%2C%202%2F2%29
When the randomized
max_bytes_before_external_sortmakes thequery_43sort spill, and the randomizedprefer_external_sort_block_bytesis1,MergeSortingTransformemits merged blocks of 128 rows. The runtime dataflow estimator samples those small blocks, andZSTD(3)compresses them several times worse than full-size blocks. That pushes theURLoutput estimate from ~17 MB to ~56-61 MB, which is outside the 2.5x tolerance around the value recalibrated in #108786. UnderLZ4the old expected value (82 MB) left enough room for this, so the failure only started after #108786. All fourquery_43failures in CIDB over the last 30 days had both settings. The test now disables external sorting, the same way it already disables external aggregation.The other failures of this test in CIDB (
query_10 0,query_12 ~6.7M) come from unrelated PR branches, not master.Related: #108786
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/122367]
Version info
26.10.1.765-master(included in26.10and later)