AWS Redshift UDF 错误
AWS Redshift UDF Error
我正在尝试实施 Redshift UDF。根据文档应该很简单:http://docs.aws.amazon.com/redshift/latest/dg/udf-creating-a-scalar-udf.html
但是,当我尝试执行示例时,Redshift returns ERROR: User Defined Function is not supported.
我是 运行 作为集群 root 用户并且为了好的措施我 g运行 自己使用 python 语言 GRANT USAGE ON LANGUAGE plpythonu TO USER_NAME_HERE;
为了完整起见,这里是我 运行 来自文档的示例:
create function f_greater (a float, b float)
returns float
stable
as $$
if a > b:
return a
return b
$$ language plpythonu;
对修复错误有什么想法吗?它对其他人有用吗?
看起来您的集群还没有打补丁。
根据他们的公告,他们将在接下来的两周内使用 UDF 修补集群,具体取决于您的区域和维护 window 设置。新集群版本为 1.0.991.
只需确保 "AllowVersionUpgrade"
设置为 true
。您可以从 UI
或使用 cli 命令 aws redshift describe-clusters
获取此参数和其他参数
我正在尝试实施 Redshift UDF。根据文档应该很简单:http://docs.aws.amazon.com/redshift/latest/dg/udf-creating-a-scalar-udf.html
但是,当我尝试执行示例时,Redshift returns ERROR: User Defined Function is not supported.
我是 运行 作为集群 root 用户并且为了好的措施我 g运行 自己使用 python 语言 GRANT USAGE ON LANGUAGE plpythonu TO USER_NAME_HERE;
为了完整起见,这里是我 运行 来自文档的示例:
create function f_greater (a float, b float)
returns float
stable
as $$
if a > b:
return a
return b
$$ language plpythonu;
对修复错误有什么想法吗?它对其他人有用吗?
看起来您的集群还没有打补丁。
根据他们的公告,他们将在接下来的两周内使用 UDF 修补集群,具体取决于您的区域和维护 window 设置。新集群版本为 1.0.991.
只需确保 "AllowVersionUpgrade"
设置为 true
。您可以从 UI
或使用 cli 命令 aws redshift describe-clusters