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

override get_columns_in_relation with driver api call #554

Conversation

jiezhen-chen
Copy link
Contributor

@jiezhen-chen jiezhen-chen commented Jul 25, 2023

resolves #555

redshift__get_columns_relation currently is a hardcoded sql query that references the pg catalog. Changes in this PR leverage get_columns, a redshift_connector API method, to retrieve the same data.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@cla-bot cla-bot bot added the cla:yes label Jul 25, 2023
@jiezhen-chen jiezhen-chen marked this pull request as ready for review July 26, 2023 04:49
@jiezhen-chen jiezhen-chen requested a review from a team as a code owner July 26, 2023 04:49
dbt/adapters/redshift/impl.py Outdated Show resolved Hide resolved
dbt/adapters/redshift/impl.py Outdated Show resolved Hide resolved
dbt/adapters/redshift/impl.py Show resolved Hide resolved
dbt/adapters/redshift/impl.py Show resolved Hide resolved
Copy link
Contributor

This PR has been marked as Stale because it has been open with no activity as of late. If you would like the PR to remain open, please comment on the PR or else it will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 18, 2024
Copy link
Contributor

Although we are closing this PR as stale, it can still be reopened to continue development. Just add a comment to notify the maintainers.

@github-actions github-actions bot closed this Jun 26, 2024
@github-actions github-actions bot removed the Stale label Jul 16, 2024
@mikealfare
Copy link
Contributor

This PR will be superceded by #899. @jiezhen-chen will be given contributor credit in that PR as the implementation is effectively the same as here.

@mikealfare mikealfare closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADAP-726] [Feature] Remove references to pg catalogs in hard-coded queries
4 participants