Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
lmatz committed Dec 22, 2024
1 parent 9aab24b commit a4b261b
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion e2e_test/batch/order/test_limit.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,43 @@ SELECT * FROM generate_series(0,3,1) as t(v) order by v limit NULL + 1;
0
1
2
3

query I
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit NULL + '1'::bigint;
----
0
1
2
3

statement error
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit NULL + '1';

statement error
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit NULL + '1'::jsonb;

query I
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit 1.1::Decimal;
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit 2.1::Decimal;
----
0
1

statement error
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit '1'::jsonb;


query I
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit '2';
----
0
1

statement error
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit '-2';

statement error
SELECT * FROM generate_series(0,3,1) as t(v) order by v limit '2.2';

# Subqueries that return negative values
statement error
Expand Down

0 comments on commit a4b261b

Please sign in to comment.