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,50 @@
# name: test/sql/overflow/double_float_overflow.test
# description: Test handling of overflow doubles and floats;
# group: [overflow]
# this is tested extra because floats and doubles can represent inf and nan as well. And we
# want to make sure we still catch overflows for these functions
statement ok
PRAGMA enable_verification
query I
SELECT 1e308::DOUBLE + 1e308::DOUBLE;
----
inf
query I
SELECT 0::DOUBLE - 1e308::DOUBLE - 1e308::DOUBLE;
----
-inf
query I
SELECT 1e308::DOUBLE * 1e308::DOUBLE;
----
inf
query I
SELECT 1e308::DOUBLE * 1e308::DOUBLE;
----
inf
query I
SELECT 1e308::DOUBLE / 0.1;
----
inf
query I
SELECT 2e38::FLOAT + 2e38::FLOAT;
----
inf
query I
SELECT 2e38::FLOAT * 2e38::FLOAT;
----
inf
query I
SELECT 2e38::FLOAT / 0.1;
----
inf