Skip to content

Commit

Permalink
Rerecord regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaruza committed May 13, 2024
1 parent c40d805 commit cd4417a
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions expected/basic.out
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,45 @@ INSERT INTO t SELECT g % 10 from generate_series(1,1000000) g;
SET client_min_messages to 'DEBUG3';
SELECT COUNT(*) FROM t;
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapScanGlobalState) Running 1 threads --
count
---------
1000000
count_star()
--------------
1000000
(1 row)

SELECT a, COUNT(*) FROM t WHERE a > 5 GROUP BY a ORDER BY a;
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapScanGlobalState) Running 1 threads --
a | count
---+--------
6 | 100000
7 | 100000
8 | 100000
9 | 100000
a | count_star()
---+--------------
6 | 100000
7 | 100000
8 | 100000
9 | 100000
(4 rows)

SET quack.max_threads_per_query to 4;
SELECT COUNT(*) FROM t;
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapScanGlobalState) Running 4 threads --
count
---------
1000000
count_star()
--------------
1000000
(1 row)

SELECT a, COUNT(*) FROM t WHERE a > 5 GROUP BY a ORDER BY a;
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapBind) Column name: a, Type: INTEGER --
DEBUG: -- (DuckDB/PostgresHeapScanGlobalState) Running 4 threads --
a | count
---+--------
6 | 100000
7 | 100000
8 | 100000
9 | 100000
a | count_star()
---+--------------
6 | 100000
7 | 100000
8 | 100000
9 | 100000
(4 rows)

SET quack.max_threads_per_query TO default;
Expand Down

0 comments on commit cd4417a

Please sign in to comment.