【发布时间】:2020-12-18 23:10:54
【问题描述】:
Snowflake UDF require 指定输入类型。我想使用像hash 这样的函数,它可以将多种数据类型作为输入。如果我尝试在 BigQuery 中使用的内容:
CREATE FUNCTION hash_mod (x any type) returns int AS
$$
hash(x) % 100
$$
;
我收到错误 SQL compilation error: syntax error line 1 at position 28 unexpected 'any'。
【问题讨论】:
标签: sql user-defined-functions snowflake-cloud-data-platform sql-function