ClickHouse/tests/queries/0_stateless/02126_identity_user_defined_function.sql
2021-12-02 13:13:58 +03:00

15 lines
379 B
SQL

-- Tags: no-parallel
DROP FUNCTION IF EXISTS 02126_function;
CREATE FUNCTION 02126_function AS x -> x;
SELECT 02126_function(1);
DROP FUNCTION 02126_function;
CREATE FUNCTION 02126_function AS () -> x;
SELECT 02126_function(); --{ serverError 47 }
DROP FUNCTION 02126_function;
CREATE FUNCTION 02126_function AS () -> 5;
SELECT 02126_function();
DROP FUNCTION 02126_function;