Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support external tables and late binding views #89

Conversation

liepieshov
Copy link
Contributor

What

Currently it cannot load any columns info for Redshift external tables. It fails badly even during dbt compile.

How

Use the default query inside call statement('columns'), but also union it with info from pg_catalog.svv_columns where the info about external tables and late binding views can be found.
Inspired by implementation in dbt..

To support redshift external tables and late binding views we need
additionally pull info from pg_catalog.svv_columns. Ref: https://github.com/dbt-labs/dbt-redshift/blob/fe91015ac6361c48531b439ac72d3f477d9cc07b/dbt/include/redshift/macros/adapters.sql
@mateuszklimek mateuszklimek merged commit d8a2dfc into re-data:main Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants