mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
15 lines
267 B
MySQL
15 lines
267 B
MySQL
|
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;
|