-
Notifications
You must be signed in to change notification settings - Fork 119
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
Add custom constraint option #792
Add custom constraint option #792
Conversation
Signed-off-by: Roy Dobbe <[email protected]>
Signed-off-by: Roy Dobbe <[email protected]>
Signed-off-by: Roy Dobbe [email protected]
{% elif type == 'custom' %} | ||
{% set expression = constraint.get("expression", "") %} | ||
{% if not expression %} | ||
{{ exceptions.raise_compiler_error('Invalid check constraint expression') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Missing custom constraint expression'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah silly! Adjusted :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change requested. Also add your thank you call out to the changelog :)
Description
Added an option to create custom constraints. A usecase could be creating TIMESERIES primary keys.
Checklist
CHANGELOG.md
and added information about my change to the "dbt-databricks next" section.