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

24 lines
373 B
SQL

# name: test/issues/rigger/test_581.test
# description: Issue 581
# group: [rigger]
statement ok
SET default_null_order='nulls_first';
statement ok
PRAGMA enable_verification
# DISTINCT malfunctions for BOOLEAN
statement ok
CREATE TABLE t0(c0 BOOLEAN);
statement ok
INSERT INTO t0 VALUES (NULL), (false);
query T
SELECT DISTINCT t0.c0 FROM t0 ORDER BY 1;
----
NULL
0