should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
# name: test/issues/general/test_9399.test_slow
# description: Issue 9399: Incorrect query output from group by query (regression in 0.9.0)
# group: [general]
# happened with > 8 threads
statement ok
SET threads=10
# seed so it's deterministic
set seed 0.8765309
# create table that's has just one row group, and just a few duplicates
statement ok
CREATE TABLE test AS
SELECT CASE WHEN random() < 0.002 THEN range ELSE 100000 - range END c0,
random() c1,
random() c2
FROM range(100000)
# should return 99815 rows (was 99870 before)
query III
WITH cte AS (SELECT c0,
avg(c1) AS c1_avg,
avg(c2) AS c2_avg
FROM test GROUP BY c0)
SELECT * FROM cte
ORDER BY c0
----
299370 values hashing to bbebcd893b08ad0e1c1240e29a1b814d