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

Cleanup warnings and test issues #843

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Cleanup warnings and test issues #843

merged 3 commits into from
Nov 13, 2024

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Nov 13, 2024

Description

Dbt asked me to not require pydantic > 2 (as it was causing issues). So I wrote all of my pydantic in v1; however, if pydantic v2 got installed, a bunch of warnings would be emitted. So now restricting to < 2.

Marked failing iceberg tests as skip for now (since there is an issue in prod).

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@@ -5,7 +5,8 @@
from dbt.artifacts.schemas.results import RunStatus


@pytest.mark.skip_profile("databricks_cluster")
# @pytest.mark.skip_profile("databricks_cluster")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do you comment out instead of deleting it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's only temporary until next week, when the fix will get released to prod.

@benc-db benc-db merged commit 711607e into main Nov 13, 2024
18 checks passed
tatiana pushed a commit to astronomer/astronomer-cosmos that referenced this pull request Dec 10, 2024
Our CI is broken due to a `dbt-databricks` release with conflicting
dependencies with `Airflow>=2.8`.

The latest release of`dbt-databricks` has pinned the Pydantic to
`"pydantic>=1.10.0, <2"`
https://github.com/databricks/dbt-databricks/blob/main/pyproject.toml#L33-L33

This change was added in PR:
databricks/dbt-databricks#843 and released on 9
December as part of `dbt-databricks==1.9.0`
(https://pypi.org/project/dbt-databricks/1.9.0/).

The `debt-data bricks` conflicts with the neAirflow version, which that
requires Pydantic 2.0.

For Airflow < 2.8, things work as expected:
https://github.com/astronomer/astronomer-cosmos/actions/runs/12259335118/job/34201293598.

In this PR, I'm pinning dbt-databricks version to < 1.9 to make CI green
again.

Follow-up PR:
#1379
@ghjklw ghjklw mentioned this pull request Dec 11, 2024
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