0
我想安裝在Vertica 7中預打包的UDAF字符串函數。特別要安裝group_concat。在Vertica 7中安裝group_concat UDAF聚合函數
以前在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