Skip to content

Fix: disable query validations for dbt models#5305

Merged
georgesittas merged 3 commits intomainfrom
jo/do_not_validate_dbt_models
Sep 8, 2025
Merged

Fix: disable query validations for dbt models#5305
georgesittas merged 3 commits intomainfrom
jo/do_not_validate_dbt_models

Conversation

@georgesittas
Copy link
Contributor

This PR makes the SQL model definition validation opt-in, via a linter rule. It is enabled by default, but only for native SQLMesh projects. This is done to be more lenient when loading dbt projects, since we shouldn't reject models that have, e.g., duplicate projections– they run fine in dbt.

@georgesittas georgesittas requested review from a team and tobymao September 5, 2025 17:44
@georgesittas georgesittas force-pushed the jo/do_not_validate_dbt_models branch from d8a11f1 to db464f3 Compare September 8, 2025 11:57
@georgesittas georgesittas force-pushed the jo/do_not_validate_dbt_models branch 2 times, most recently from acc8d37 to 9946417 Compare September 8, 2025 18:31
@georgesittas georgesittas force-pushed the jo/do_not_validate_dbt_models branch from 9946417 to 91a403a Compare September 8, 2025 18:31
@georgesittas georgesittas force-pushed the jo/do_not_validate_dbt_models branch from 91a403a to 74ea5e3 Compare September 8, 2025 18:33
@georgesittas georgesittas merged commit 45a2db6 into main Sep 8, 2025
45 of 46 checks passed
@georgesittas georgesittas deleted the jo/do_not_validate_dbt_models branch September 8, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants