mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
15 lines
267 B
SQL
15 lines
267 B
SQL
DROP FUNCTION IF EXISTS 03215_udf_with_union;
|
|
CREATE FUNCTION 03215_udf_with_union AS () -> (
|
|
SELECT sum(s)
|
|
FROM
|
|
(
|
|
SELECT 1 AS s
|
|
UNION ALL
|
|
SELECT 1 AS s
|
|
)
|
|
);
|
|
|
|
SELECT 03215_udf_with_union();
|
|
|
|
DROP FUNCTION 03215_udf_with_union;
|