在 redshift 中执行跨数据库联合查询是否可行?

Is it feasible to perform a cross database federated query in redshift?

虽然跨数据库查询(在基于 ra3 节点的集群中)和联合查询单独使用似乎有效,但放在一起似乎无法使用。我很可能遗漏了一些东西,因此出现了这个问题。详情如下:

select count(1) from ext_mdb.Table2;

select count(1) from RSDB1.ext_mdb.Table2; # this also works

select count(1) from RSDB1.ext_mdb.Table2; # this doesn't from RSDB2

ERROR: Relation Table2 does not exist in the database.

从我阅读这篇文章的理解来看,目前 redshift 中的跨数据库查询似乎是一个限制:https://docs.aws.amazon.com/redshift/latest/dg/cross-database_limitation.html

上面写着

Amazon Redshift doesn't support query catalog objects on AWS Glue or federated databases. To query these objects, first create external schemas that refer to those external data sources in each database.