Skip to content
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

Move model validator and rules to dbt_semantic_interfaces #515

Merged
merged 2 commits into from
May 11, 2023

Conversation

QMalcolm
Copy link
Contributor

@QMalcolm QMalcolm commented May 9, 2023

resolves #481

Description

Validations are going to be part of dbt-semantic-interfaces. This makes it so 🙂

@QMalcolm
Copy link
Contributor Author

QMalcolm commented May 9, 2023

Gonna leave this as a draft until #512 and #506 have been merged. At which point I'll rebase this and likely drop the second commit

Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving out of my review queue until this is unblocked. Please request review when you move it back out of draft!

@plypaul plypaul force-pushed the plypaul--11--rename-metric-constraint branch from 9d9eb0a to b723674 Compare May 11, 2023 09:10
Base automatically changed from plypaul--11--rename-metric-constraint to main May 11, 2023 09:18
@QMalcolm QMalcolm force-pushed the qmalcolm--dbt-si-move-validations branch from a385dee to 9474433 Compare May 11, 2023 15:39
@QMalcolm QMalcolm marked this pull request as ready for review May 11, 2023 15:40
@QMalcolm QMalcolm requested a review from tlento May 11, 2023 15:40
@QMalcolm QMalcolm force-pushed the qmalcolm--dbt-si-move-validations branch from 9474433 to 0a070b8 Compare May 11, 2023 18:33
This import worked because there is a time_granularity file in MetricFlow
and it imports TimeGranularity from dbt_semantic_interfaces (thus making
it available). However importing it from MetricFlow in dbt_semantic_interfaces
was problematic for multiple reasons
1) It created a circular dependency, and the ProcessPoolExecutor or model
validator freaked out about this
2) dbt_semantic_interfaces cannot depend on MetricFlow
@QMalcolm QMalcolm force-pushed the qmalcolm--dbt-si-move-validations branch from 0a070b8 to 113396b Compare May 11, 2023 18:34
@QMalcolm QMalcolm merged commit e00609e into main May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move ModelValidator (and rules) to dbt_semantic_interfaces
2 participants