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

Implement BigQuery Rename Relation functionality #2520

Closed
azhard opened this issue Jun 9, 2020 · 1 comment · Fixed by #2521
Closed

Implement BigQuery Rename Relation functionality #2520

azhard opened this issue Jun 9, 2020 · 1 comment · Fixed by #2521
Labels
bigquery enhancement New feature or request

Comments

@azhard
Copy link
Contributor

azhard commented Jun 9, 2020

Describe the feature

Currently the BigQuery adapter function that allows you to rename a relation isn't implemented - this feature request simply aims to implement that functionality

Describe alternatives you've considered

Based on BigQuery documentation, there is no "out of the box" solution for this and instead, you must copy a table and then delete the original one so not much in the terms of alternative ways of handling this.

https://cloud.google.com/bigquery/docs/managing-tables#renaming_a_table

Additional context

It's worth noting that views cannot currently be renamed in BigQuery so support for that cannot be added.

https://cloud.google.com/bigquery/docs/managing-views#renaming_a_view

Who will this benefit?

BigQuery dbt users!

@drewbanin
Copy link
Contributor

Thanks for opening this issue @azhard - we'll check out the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants