We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959a869 commit eed717bCopy full SHA for eed717b
test/sql/storage/limit.test
@@ -39,3 +39,35 @@ query II
39
EXPLAIN FROM s.large_tbl LIMIT 5;
40
----
41
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
57
+FROM s.large_tbl LIMIT 5 OFFSET 5
58
59
+5
60
+6
61
+7
62
+8
63
+9
64
65
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