You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-bigquery functionality, rather than a Big Idea better suited to a discussion
Describe the feature
BigQuery's Unique Approach to Primary Keys
In BigQuery, primary keys aren't typically defined directly within the table schema as in traditional databases. Instead, a separate constraint is utilized to establish a composite primary key after the table creation process.
Since dbt usually adds "PRIMARY KEY" after each column name for primary keys, this method isn't compatible with BigQuery. To address this, we need to append the following clause at the end of the table declaration:
PRIMARY KEY (field1, field2, ...)
I have an idea for a potential solution, but before implementing it, I need assurance of timely code review. I haven't received any feedback on my last contribution, which can be found here: #1122.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
yes, write the adapted code
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is this your first time submitting a feature request?
Describe the feature
BigQuery's Unique Approach to Primary Keys
In BigQuery, primary keys aren't typically defined directly within the table schema as in traditional databases. Instead, a separate constraint is utilized to establish a composite primary key after the table creation process.
Since dbt usually adds "PRIMARY KEY" after each column name for primary keys, this method isn't compatible with BigQuery. To address this, we need to append the following clause at the end of the table declaration:
PRIMARY KEY (field1, field2, ...)
I have an idea for a potential solution, but before implementing it, I need assurance of timely code review. I haven't received any feedback on my last contribution, which can be found here: #1122.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
yes, write the adapted code
Anything else?
No response
The text was updated successfully, but these errors were encountered: