我有一个要求,我需要将 RedshiftInformation schema
表与User defined
表连接起来。我尝试了以下查询并得到了提到的错误。
select *
from pg_table_def a join user_defined_table b
on 1 = 1 -- condition just to give an example
where tablename = 'table1';
SQL Error [500310] [0A000]: [Amazon](500310) Invalid operation: Specified types or functions (one per INFO message) not supported on Redshift tables.;
select *
from information_schema.columns a join user_defined_table b
on 1 =1 -- condition just to give an example
where a.table_name = 'table1';
SQL Error [500310] [0A000]: [Amazon](500310) Invalid operation: Specified types or functions (one per INFO message) not supported on Redshift tables.;
可能是我缺少一些基础知识,请建议。