Skip to content

Chore: Fix dbt import to prevent cicd failures #4781

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

Merged
merged 1 commit into from
Jun 23, 2025
Merged

Chore: Fix dbt import to prevent cicd failures #4781

merged 1 commit into from
Jun 23, 2025

Conversation

erindru
Copy link
Collaborator

@erindru erindru commented Jun 22, 2025

CircleCI started resolving dbt 1.10 which includes a rename of the merge_freshness function to merge_source_freshness.

This is causing make py-style to fail with a mypy error:

sqlmesh/dbt/manifest.py:24: error: Module "dbt.parser.sources" has no attribute "merge_freshness"; maybe "merge_source_freshness"?  [attr-defined]

(example failed job)

This PR updates the import to try importing merge_source_freshness if importing merge_freshness results in an ImportError

@erindru erindru merged commit 3e1c1cb into main Jun 23, 2025
25 checks passed
@erindru erindru deleted the erin/fix-dbt branch June 23, 2025 00:00
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.

2 participants