When I run :
CREATE FUNCTION parity_str AS (n) -> if(n % 2, 'odd', 'even');
Error: got status 400, error text: Code: 62. DB::Exception: Syntax error: failed at position 57 ('FORMAT') (line 2, col 1): FORMAT JSONCompact. Expected one of: token, Dot, UUID, DoubleColon, MOD, DIV, NOT, BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, IS, AND, OR, QuestionMark, end of query. (SYNTAX_ERROR) (version 220.127.116.11 (official build))
I wonder if the 22.8 release supports custom function.
If it does, what have I missed ?