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,35 @@
# name: test/sql/projection/coalesce_error.test
# description: Test COALESCE error short-circuiting
# group: [projection]
statement ok
PRAGMA enable_verification
# constant coalesce short-circuiting
query I
SELECT COALESCE(1, 'hello'::INT)
----
1
statement error
SELECT COALESCE(NULL, 'hello'::INT)
----
<REGEX>:.*Conversion Error.*Could not convert string.*
# non-constant
statement ok
CREATE TABLE vals AS SELECT * FROM (
VALUES (1, 'hello'), (NULL, '2'), (3, NULL)
) tbl(a, b)
query I
SELECT COALESCE(a, b::INT) FROM vals
----
1
2
3
statement error
SELECT COALESCE(NULL, b::INT) FROM vals
----
<REGEX>:.*Conversion Error.*Could not convert string.*