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

get_columns_in_relation does not include columns from external tables in Redshift #2753

Closed
1 of 5 tasks
aiguofer opened this issue Sep 14, 2020 · 3 comments · Fixed by #2754
Closed
1 of 5 tasks

get_columns_in_relation does not include columns from external tables in Redshift #2753

aiguofer opened this issue Sep 14, 2020 · 3 comments · Fixed by #2754
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors! redshift
Milestone

Comments

@aiguofer
Copy link
Contributor

Describe the bug

get_columns_in_relation does not include columns from external tables in Redshift

Steps To Reproduce

  • Set up a Spectrum tables as a source in your project
  • Use adaptor.get_columns_in_relation(source(....)) in a macro

Expected behavior

All the column names should be returned.

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

❯ dbt --version
installed version: 0.17.0
   latest version: 0.18.0

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Plugins:
  - bigquery: 0.17.0
  - snowflake: 0.17.0
  - redshift: 0.17.0
  - postgres: 0.17.0

The operating system you're using:
MacOS Catalina

The output of python --version:
Python 3.7.7

@aiguofer aiguofer added bug Something isn't working triage labels Sep 14, 2020
@aiguofer
Copy link
Contributor Author

Slightly related to #2289 but solution is different.

@jtcohen6 jtcohen6 added good_first_issue Straightforward + self-contained changes, good for new contributors! redshift and removed triage labels Sep 14, 2020
@jtcohen6
Copy link
Contributor

I like it!

@jtcohen6 jtcohen6 added this to the 0.18.1 milestone Sep 25, 2020
@jtcohen6
Copy link
Contributor

Closed by #2754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors! redshift
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants