mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add test
This commit is contained in:
parent
5e589ca6b2
commit
03273cad9c
@ -0,0 +1 @@
|
|||||||
|
1
|
20
tests/queries/0_stateless/01822_union_and_constans_error.sql
Normal file
20
tests/queries/0_stateless/01822_union_and_constans_error.sql
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
drop table if exists t0;
|
||||||
|
CREATE TABLE t0 (c0 String) ENGINE = Log();
|
||||||
|
|
||||||
|
SELECT isNull(t0.c0) OR COUNT('\n?pVa')
|
||||||
|
FROM t0
|
||||||
|
GROUP BY t0.c0
|
||||||
|
HAVING isNull(t0.c0)
|
||||||
|
UNION ALL
|
||||||
|
SELECT isNull(t0.c0) OR COUNT('\n?pVa')
|
||||||
|
FROM t0
|
||||||
|
GROUP BY t0.c0
|
||||||
|
HAVING NOT isNull(t0.c0)
|
||||||
|
UNION ALL
|
||||||
|
SELECT isNull(t0.c0) OR COUNT('\n?pVa')
|
||||||
|
FROM t0
|
||||||
|
GROUP BY t0.c0
|
||||||
|
HAVING isNull(isNull(t0.c0))
|
||||||
|
SETTINGS aggregate_functions_null_for_empty = 1, enable_optimize_predicate_expression = 0;
|
||||||
|
|
||||||
|
drop table if exists t0;
|
Loading…
Reference in New Issue
Block a user