diff --git a/e2e_test/batch/order/test_limit.slt.part b/e2e_test/batch/order/test_limit.slt.part index 6a7a4bc978fd1..9bcf832215ff4 100644 --- a/e2e_test/batch/order/test_limit.slt.part +++ b/e2e_test/batch/order/test_limit.slt.part @@ -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