You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds two stateless regression tests for the ColumnReplicated sorting exception reported in issue 106095, covering both the parallel-replicas reproducer and the direct lazy column replication path. The second test pins the important execution path, but the first one can pass under randomized stateless settings without exercising the intended parallel-replicas plus read-in-order path, so I am requesting a small test hardening change.
Missing context / blind spots
⚠️ CI for commit 7b771fd2bb5c3048f2fe241816f8324e7868bae7 was still pending, and the S3 PR report had no populated test results when reviewed. A completed stateless run would close this gap.
⚠️ I could not run the new stateless tests locally because this checkout has no ClickHouse binary or build directory.
Findings
⚠️ Major: [tests/queries/0_stateless/04304_lazy_crash_1.sql:6] The test promises regression coverage for the parallel-replicas plus read-in-order path, but it leaves randomized settings unpinned. clickhouse-test can run with optimize_read_in_order = 0 and automatic_parallel_replicas_mode = 2, so the query can pass without using either half of the reproducer. Merges are also left enabled, so the three tiny inserted parts can be merged before read_in_order_two_level_merge_threshold = 2 matters. Pin automatic_parallel_replicas_mode = 0 and optimize_read_in_order = 1, and add SYSTEM STOP MERGES test after creating test, matching the hardening already used in 04304_lazy_crash_2.sql.
Tests
⚠️ The intended regression coverage is insufficient until 04304_lazy_crash_1.sql forces the execution path it is meant to protect. CI was pending, so there is not yet external evidence that the new tests pass after that hardening.
Final Verdict
Status: ⚠️ Request changes
Minimum required action: harden 04304_lazy_crash_1.sql by pinning the randomized settings and preventing background merges before the repro query.
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
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.
Add tests that detect that #98883 (reverted in #106277) broke some queries
Closes #106095
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.6.1.358