Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

[Feature] Add support for federated query external schemas #816

@ronco

Description

@ronco

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt-redshift functionality, rather than a Big Idea better suited to a discussion

Describe the feature

Redshift can pull data from a remote RDS database, a process known as federated queries. However, dbt does not recognize tables in these external schemas as valid relations. Ideally, these tables would work out of the box with dbt-redshift.

I believe this is due to the code making use of information_schema.tables and pg_class, neither of which include federated query tables. Using svv_tables for these relation lookups would expose the external tables.

Describe alternatives you've considered

I've made this work by creating a materialized view of the external schema table. The downside is the additional creation step and manually refreshing the view before use.

Who will this benefit?

This will benefit any database engineer or developer who uses federated queries to pull data from RDS databases such as Postgresql.

Are you interested in contributing this feature?

No response

Anything else?

Querying data with federated queries in Amazon Redshift

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions