Skip to content

Commit eed717b

Browse files
committed
reproduced parallel limit problem
1 parent 959a869 commit eed717b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test/sql/storage/limit.test

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,35 @@ query II
3939
EXPLAIN FROM s.large_tbl LIMIT 5;
4040
----
4141
logical_opt <!REGEX>:.*LIMIT.*
42+
43+
44+
statement ok
45+
set pg_pages_per_task=1
46+
47+
query I
48+
FROM s.large_tbl LIMIT 5
49+
----
50+
0
51+
1
52+
2
53+
3
54+
4
55+
56+
query I
57+
FROM s.large_tbl LIMIT 5 OFFSET 5
58+
----
59+
5
60+
6
61+
7
62+
8
63+
9
64+
65+
statement ok
66+
set explain_output='optimized_only'
67+
68+
# limit is still in plan as we were not able to push down due to parallel execution
69+
70+
query II
71+
EXPLAIN FROM s.large_tbl LIMIT 5;
72+
----
73+
logical_opt <REGEX>:.*LIMIT.*

0 commit comments

Comments
 (0)