Skip to content

Commit 5663744

Browse files
committed
test(logic): fix SLT format specifiers and runner refinements
1 parent 98a684d commit 5663744

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/logic/indexes.slt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ SELECT id, val FROM idx_test WHERE id = 3;
1717
3 three
1818

1919
# 3. Point lookup with no match
20-
query IT
21-
SELECT id, val FROM idx_test WHERE id = 10;
20+
query I
21+
SELECT id FROM idx_test WHERE id = 10;
2222
----
2323

2424
# 4. Range-like query (if supported, but usually SeqScan fallback)
25-
query IT
25+
query I
2626
SELECT id FROM idx_test WHERE id > 2 ORDER BY id;
2727
----
2828
3

tests/logic/limit_offset.slt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,52 @@ statement ok
77
INSERT INTO lim_off_test VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e');
88

99
# 1. Simple Limit
10-
query IT
10+
query I
1111
SELECT id FROM lim_off_test ORDER BY id LIMIT 3;
1212
----
1313
1
1414
2
1515
3
1616

1717
# 2. Simple Offset
18-
query IT
18+
query I
1919
SELECT id FROM lim_off_test ORDER BY id OFFSET 2;
2020
----
2121
3
2222
4
2323
5
2424

2525
# 3. Limit and Offset combined
26-
query IT
26+
query I
2727
SELECT id FROM lim_off_test ORDER BY id LIMIT 2 OFFSET 1;
2828
----
2929
2
3030
3
3131

3232
# 4. Limit 0 (should return empty)
33-
query IT
33+
query I
3434
SELECT id FROM lim_off_test ORDER BY id LIMIT 0;
3535
----
3636

3737
# 5. Offset equal to row count
38-
query IT
38+
query I
3939
SELECT id FROM lim_off_test ORDER BY id OFFSET 5;
4040
----
4141

4242
# 6. Offset greater than row count
43-
query IT
43+
query I
4444
SELECT id FROM lim_off_test ORDER BY id OFFSET 10;
4545
----
4646

4747
# 7. Limit greater than available rows
48-
query IT
48+
query I
4949
SELECT id FROM lim_off_test ORDER BY id OFFSET 3 LIMIT 10;
5050
----
5151
4
5252
5
5353

5454
# 8. Limit and Offset with Filter (OFFSET 3 LIMIT 1)
55-
query IT
55+
query I
5656
SELECT id FROM lim_off_test WHERE id > 0 ORDER BY id OFFSET 3 LIMIT 1;
5757
----
5858
4

tests/logic/slt_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def run_slt(file_path, port):
187187
if status == "ERROR":
188188
print(f"FAILURE at {file_path}:{start_line}")
189189
print(f" SQL: {sql}")
190-
print(f" Query failed with ERROR status")
190+
print(" Query failed with ERROR status")
191191
failed_tests += 1
192192
continue
193193

0 commit comments

Comments
 (0)