GithubHelp home page GithubHelp logo

Comments (3)

sfc-gh-dflippo avatar sfc-gh-dflippo commented on September 18, 2024

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.

sfc-gh-dflippo avatar sfc-gh-dflippo commented on September 18, 2024

Closing since no one has chimed in.

from dbt_constraints.

brettwatkins-Built avatar brettwatkins-Built commented on September 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.