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

fix(dbt Core): Support syncing metrics without a MetricFlow dialect #302

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

Vitor-Avila
Copy link
Contributor

MetricFlow is not compatible with all DB engines supported by dbt Core yet. Currently, triggering a dbt Core sync in this scenario would raise an error. This PR gracefully handles this case and still processes legacy metrics.

Fixes #288.

@@ -111,7 +111,7 @@
)
@raise_cli_errors
@click.pass_context
def dbt_core( # pylint: disable=too-many-arguments, too-many-branches, too-many-locals ,too-many-statements
def dbt_core( # pylint: disable=too-many-arguments, too-many-branches, too-many-locals ,too-many-statements # noqa: C901
Copy link
Contributor Author

@Vitor-Avila Vitor-Avila Jun 20, 2024

Choose a reason for hiding this comment

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

There's some logic getting deprecated in this method soon that should allow us to remove # noqa: C901. I could also plan a bigger refactor to break this down into smaller methods (but I think it deserves its own PR).

@Vitor-Avila Vitor-Avila merged commit 7e3caac into main Jun 21, 2024
5 checks passed
@Vitor-Avila Vitor-Avila deleted the skip-semantic-layer branch June 21, 2024 03:51
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.

sync dbt fails on Athena from version 0.2.12
2 participants