ClickHouse/tests/queries/0_stateless/03215_udf_with_union.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
267 B
MySQL
Raw Normal View History

2024-08-02 09:13:41 +00:00
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;