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

update for generalized constraint warnings #707

Closed
wants to merge 1 commit into from

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Apr 4, 2023

resolves #656

Description

Uses centralized warnings from dbt-core for constraints.

Checklist

@emmyoop emmyoop added the Skip Changelog Skips GHA to check for changelog file label Apr 4, 2023
@cla-bot cla-bot bot added the cla:yes label Apr 4, 2023
{% if constraint.type != 'not_null' %}
{{ exceptions.warn('Invalid constraint for column ' ~ column_name ~ '. Only `not_null` is supported.') }}
{% else %}
{% if constraint.type == 'not_null' %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this make sense? I'm not sure why this is the behavior now if none of the constraints are enforced?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's been talk in other PR's of logging warnings that certain constraints aren't enforced.

If you've got those covered upstream, and I think you do, I endorse this.

@mikealfare mikealfare self-assigned this Apr 21, 2023
@mikealfare mikealfare closed this Sep 13, 2023
@mikealfare mikealfare deleted the er/ct-2219-constraint_support branch September 13, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-2219] [Spark] Implement constraint_support on SparkAdapter
3 participants