我想安装预先打包在Vertica 7中的UDAF字符串函数。特别想安装group_concat。
之前曾在Vertica 6中安装过这个版本,但事情似乎发生了一些变化。例如。没有make文件,但有一个install.sql /
这就是我的所作所为:
$ vsql -U dbadmin -w secret
> \i /opt/vertica/packages/txtindex/ddl/install.sql
这会产生以下输出:
------------------------------------
Vertica Analytic Database v7.2.0-0
(1 row)
ALTER SESSION
vsql:/opt/vertica/packages/txtindex/ddl/install.sql:5: ROLLBACK 4650: Schema "TxtIndex" does not exist
vsql:/opt/vertica/packages/txtindex/ddl/install.sql:6: NOTICE 4214: Object "v_txtindex" already exists; nothing was done
CREATE SCHEMA
ALTER SESSION
CREATE LIBRARY
CREATE FUNCTION
GRANT PRIVILEGE
CREATE FUNCTION
GRANT PRIVILEGE
CREATE FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
CREATE TRANSFORM FUNCTION
GRANT PRIVILEGE
看起来它有效但安装失败了:
dbadmin=> \i /opt/vertica/packages/txtindex/ddl/isinstalled.sql
?column?
----------
f
(1 row)
以下查询也失败
SELECT id, group_concat(distinct organization) AS orgs FROM myschema.mytable GROUP BY id;
具体而言,我得到了这个错误:
ERROR 3457: Function group_concat(varchar) does not exist, or permission is denied for group_concat(varchar)
HINT: No function matches the given name and argument types. You may need to add explicit type casts
答案 0 :(得分:0)
据我所知,group_concat()安装在/opt/vertica/packages/txtindex/ddl/install.sql中注释(此文件中最后两行)。
可能在HAVEN市场中提供group_concat()来源。