Repository navigation
add ColumnDecimal::compareTrackAt - #105110
Conversation
|
Workflow [PR], commit [3e51b54] Summary: ✅ AI ReviewSummaryThis PR adds Tests
Final Verdict
|
|
This was fixed by #105146. Let's update the branch. |
f6ae7ff to
5f00b11
Compare
|
Some synthetic over TPC-H Before (26.4.2) Not-nullable Nullable After Not-nullable Nullable Default JOIN not-null (better parallelism) |
| } | ||
| return res; | ||
| } | ||
| else |
There was a problem hiding this comment.
The new scale != other.scale branch in compareTrackAt is not covered by the added test: all join keys there are Decimal32(0) on both sides.
Please add at least one partial_merge join case with different decimal scales (for example, Decimal32(0) joined with Decimal32(2) after compatible casting) so this path is exercised and guarded against regressions.
LLVM Coverage Report
Changed lines: 66.67% (42/63) | lost baseline coverage: 1 line(s) · Uncovered code |
|
Hi @4ertus2 @alexey-milovidov — while reviewing this PR I found the following:
Could you review the test PR and add the |
The test uses `remote('127.{2,3}', $DB, data_01814, key)` so both shards
target the same server and therefore return identical rows (0..99). With
`optimize_distributed_group_by_sharding_key = 1` the coordinator skips
the cross-shard deduplication merge under the assumption that data is
partitioned by the sharding key. Each shard pre-aggregates and emits its
own top-10 keys (0..9); the coordinator's plan reduces to
`Limit(10) <- Union(shard1, shard2)`, which takes the first 10 rows in
arrival order.
Per-shard row production timing depends on `max_threads`, page-cache
injection, filesystem-cache settings and `prefer_localhost_replica`,
which the CI randomizes. Under some combinations the coordinator sees
e.g. `0_shardA, 0_shardB, 1_shardA, ..., 8_shardA` and LIMIT 10 fires
on `8` -- producing `0,0,1,2,3,4,5,6,7,8` instead of `0..9`.
Reproduced locally at 8/30 (~27%) with the exact randomization snapshot
from PR ClickHouse#105110; 50/50 passes with the fix on both the failing-settings
combo and the default randomization.
The check that matters is `read_rows = 40` per shard, i.e. the LIMIT was
actually pushed down (`distributed_push_down_limit = 0` reads 100/shard
in the sibling subtest). Discarding the per-key output with
`--format Null` keeps that assertion and removes the timing-dependent
one. The OFFSET subtest is unaffected -- it uses `ORDER BY key DESC`
which produces a deterministic output anyway.
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105110&sha=f6ae7ff78cc0306e215e41c5384680da11fde14c&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20parallel%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
add
compareTrackAtforColumnDecimalMissing part of #99013 #100945
Version info
26.5.1.845