Comments (3)
It was a deliberate design choice to create constraints only when you actually know the test has passed. Is your use case on Snowflake or PostgreSQL? On Snowflake, I am inclined to say you should have to run the test but on PostgreSQL, we create DB enforced constraints so you would get a failed run if you created an invalid constraint. Can you also give more details on why you don't want to run the tests? I don't typically see tests taking up much time in my customers' projects due to the multi-threaded nature of dbt and Snowflake.
from dbt_constraints.
Closing since no one has chimed in.
from dbt_constraints.
Hey @sfc-gh-dflippo, if you are forced to execute dbt run
and then dbt test
to add the keys, the tables created during the run are without a primary key for as long as the testing process takes to run. If they're a lot of tests, this just doesn't scale.
from dbt_constraints.
Related Issues (20)
- Decouple constraints from tests HOT 1
- Create constraint only on table recreation HOT 1
- Latest version 0.6.0 working on dbt-snowflake 1.4.1 (core version 1.4.5 HOT 2
- Add for BigQuery, since they now support FK & PK HOT 6
- Enhancement: Conditional foreign key test to support data vault HOT 1
- FK relationship to table already in the database HOT 1
- Is this package still needed if `dbt >= 1.5.0` ? HOT 3
- question regarding MATCH option on creating Snowflake constraints HOT 6
- Foreign Key constriants are not created in Snowflake database HOT 2
- Exclusion of a data catalog, database, or directory from a dbt_constraint build
- Foreign key constraints tested more than once HOT 2
- always_create_constraint is not working properly HOT 3
- Using constraints in models without name and column parameters HOT 2
- not_null constraint causing error on severity: warn with warn_if > 0 HOT 1
- Failed to create PK constraint if a table already has PK constraint on another column or columns HOT 2
- Conditional argument not accepted for dbt_constraints_enabled var HOT 1
- Deferral seems broken when using dbt 1.7 HOT 4
- Issue with V1.0 - 'test_selected' is undefined - incorrectly referenced in create_constraints.sql HOT 5
- On-run-end hook fails if model fails
- can we set a particular test severity to warn at project level ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbt_constraints.