mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +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;
|