databricks / dbt-databricks

A dbt adapter for Databricks.
https://databricks.com
Apache License 2.0
226 stars 119 forks source link

added custom option to constraints #785

Closed roydobbe closed 2 months ago

roydobbe commented 2 months ago

Signed-off-by: Roy Dobbe roy.dobbe@gmail.com

Resolves #

It resolves not being able to use the latest databricks contstraints, without relying on implementation from the databricks or dbt team.

Description

Added the option to include a custom constraint, so a TIMESERIES primary key can be added. Tried doing this in primary_key, but it only allows for specific attributes, so i couldnt specify something like timeseries_column. Using a custom expression made it more user friendly.

Checklist