Files
greptimedb/tests-fuzz/targets
discord9 d5f4d711ad test(fuzz): make a duplicated repartition row observable (#10753)
* test(fuzz): make a duplicated repartition row observable

The target validated with COUNT(1) on a table that was not append-mode, so the scan's
last-row dedup collapsed two copies of the same (primary key, time index) before the
count ran: a duplicate was invisible even when the data held it.

Create the table in append mode and add a group-by over the key and time-index columns
with HAVING COUNT(1) > 1, which fails naming the duplicated key. The pre-merge
strict-window compaction stays: it is what makes a second copy reachable.

Signed-off-by: discord9 <discord9@163.com>

* test(fuzz): name the duplicate before the counts panic

The duplicate-row assertion ran after COUNT(1) and COUNT(DISTINCT ts); a duplicate
trips those first, so the query that names the offending key never ran. Move it ahead of
both.

Signed-off-by: discord9 <discord9@163.com>

---------

Signed-off-by: discord9 <discord9@163.com>
2026-12-01 10:08:12 +00:00
..