Files
email-tracker/external/duckdb/test/issues/rigger/test_10087.test
2025-10-24 19:21:19 -05:00

19 lines
438 B
SQL

# name: test/issues/rigger/test_10087.test
# description: SQLancer bug that detected an issue with the column lifetime analyzer
# group: [rigger]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE t0(c1 INT);
statement ok
INSERT INTO t0(c1) VALUES (1);
statement ok
CREATE VIEW v0(c0, c1, c2) AS SELECT '1', true, t0.c1 FROM t0 ORDER BY -1-2 LIMIT 2;
statement ok
SELECT v0.c2 FROM v0 WHERE (NOT (v0.c1 IS NOT NULL));