21 lines
546 B
SQL
21 lines
546 B
SQL
# name: test/issues/rigger/test_562.test
|
|
# description: Issue 562
|
|
# group: [rigger]
|
|
|
|
statement ok
|
|
PRAGMA enable_verification
|
|
|
|
# SELECT with CASE expression causes an assertion failure 'Assertion `!entry.first->Equals(&expr)' failed'
|
|
statement ok
|
|
CREATE TABLE t0(c0 INT);
|
|
|
|
statement error
|
|
SELECT * FROM t0 GROUP BY -4.40304405E8 ORDER BY (CASE 1 WHEN 0 THEN 0 ELSE -440304405 END);
|
|
----
|
|
<REGEX>:Binder Error.*must appear in the GROUP BY.*
|
|
|
|
query I
|
|
SELECT 1 FROM t0 GROUP BY -4.40304405E8 ORDER BY (CASE 1 WHEN 0 THEN 0 ELSE -440304405 END);
|
|
----
|
|
|