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

[CT-1696] [Feature] Support constraints in BigQuery following the dbt Core implementation #444

Closed
3 tasks done
Victoriapm opened this issue Dec 20, 2022 · 0 comments · Fixed by #426
Closed
3 tasks done
Assignees
Labels
help_wanted Extra attention is needed type:enhancement New feature or request

Comments

@Victoriapm
Copy link
Contributor

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • 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

Use the new constraints configs from this PR: dbt-labs/dbt-core#6271

version: 2

models:
  - name: constraints_example
    docs:
      node_color: black
    config:
      constraints_enabled: true
    columns:
      - name: id
        data_type: integer
        description: hello
        constraints: ['not null','primary key']
        check: id > 0
        tests:
          - unique
      - name: color
        data_type: string
      - name: date_day
        data_type: date

Describe alternatives you've considered

No response

Who will this benefit?

People wanting to leverage the dbt Core column constraints capability when using dbt with BigQuery

Are you interested in contributing this feature?

yes

Anything else?

dbt-core issues dbt-labs/dbt-core#6079 and dbt-labs/dbt-core#6271

@github-actions github-actions bot changed the title [Feature] Support constraints in BigQuery following the dbt Core implementation [CT-1696] [Feature] Support constraints in BigQuery following the dbt Core implementation Dec 20, 2022
@jtcohen6 jtcohen6 added the help_wanted Extra attention is needed label Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help_wanted Extra attention is needed type:enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants