我正在尝试使用redshift中的union运行array_to_string,但我不断收到以下错误消息:
ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables. [SQL State=0A000]
查询本身非常直接,所以我不确定为什么我一直这样,有人可以建议
(SELECT array_to_string(array(select column_name::text from information_schema.columns where table_name= 'customer_insert' order by ordinal_position),'|'))
UNION
(select "user.firstname"::text from digital.customer_insert where "user.isocountrycode" = 'BE' limit 2)
答案 0 :(得分:1)
不幸的是,Redshift不支持Postgres的数组类型: http://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-datatypes.html