should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# name: test/fuzzer/sqlsmith/test_abs_overflow.test
# description: Fuzzer #29: test abs overflow
# group: [sqlsmith]
statement ok
PRAGMA enable_verification
# test abs function on extremes
statement ok
CREATE TABLE numerics AS SELECT tinyint, smallint, int, bigint, hugeint FROM test_all_types();
foreach type tinyint smallint int bigint hugeint
statement error
SELECT abs(${type}) FROM numerics;
----
Overflow on abs
statement ok
SELECT abs(${type}) FROM numerics WHERE ${type} > 0;
endloop