From ee5459521f0d617cd1155697443f21b60887ec17 Mon Sep 17 00:00:00 2001 From: lmatz Date: Wed, 18 Dec 2024 16:22:00 +0800 Subject: [PATCH] fix test cases --- e2e_test/batch/order/negative_offset.slt.part | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/e2e_test/batch/order/negative_offset.slt.part b/e2e_test/batch/order/negative_offset.slt.part index 38dadc4e1fa11..8991ef1bb023c 100644 --- a/e2e_test/batch/order/negative_offset.slt.part +++ b/e2e_test/batch/order/negative_offset.slt.part @@ -15,28 +15,26 @@ SELECT * FROM generate_series(0,10,1) LIMIT -3; statement error SELECT * FROM generate_series(0,10,1) LIMIT -1%; -statement ok +query I SELECT * FROM generate_series(0,10,1) as t(v) order by v limit 1+2; ---- 0 1 2 - -statement ok +query I SELECT * FROM generate_series(0,10,1) as t(v) order by v limit 1.5*2; --- 0 1 2 - -statement ok +query I SELECT * FROM generate_series(0,10,1) as t(v) order by v limit -3+4; --- 0 -statement ok +query I SELECT * FROM generate_series(0,10,1) as t(v) order by v limit 1.5*2 OFFSET 2; --- 2