Commit e81de4c
committed
ClickHouse: triage smoke ClickHouse#9 new families — AggState float drift + Enum UPDATE
Two new reproducer families from smoke ClickHouse#9 triaged:
1. AggregateStateRoundtrip (3 reproducers): sum(c0) vs finalizeAggregation(
arrayReduce('sumState', groupArray(c0))) returned different floats. Root
cause is float-arithmetic non-associativity -- sum() over an unsorted table
reads rows in storage order, sumState over a groupArray reads in array
order; for floats, different orders produce different ULP-level sums.
Not a CH bug. Restrict the oracle's sum branch to integer columns only.
min/max/count are order-independent and safe on float.
2. SEMR (2) + AggregateStateRoundtrip (1): ALTER UPDATE assigning a numeric
literal to an Enum column with CANNOT_CONVERT_TYPE. The mutation generator
was type-blind. Filter target columns to plain primitives / Decimal /
FixedString / DateTime64 -- skips Enum / composite / geo / JSON-family /
AggregateFunction columns that can't accept arbitrary integer expressions.1 parent 883a04e commit e81de4c
2 files changed
Lines changed: 32 additions & 3 deletions
File tree
- src/sqlancer/clickhouse
- gen
- oracle/aggstate
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
| |||
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
58 | 75 | | |
59 | 76 | | |
60 | 77 | | |
61 | | - | |
62 | | - | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| |||
0 commit comments