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 OpenLineage deprecation warning #1449

Merged
merged 8 commits into from
Jan 24, 2025
6 changes: 5 additions & 1 deletion cosmos/operators/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
if TYPE_CHECKING:
from airflow.datasets import Dataset # noqa: F811
from dbt.cli.main import dbtRunner, dbtRunnerResult
from openlineage.client.run import RunEvent

try: # pragma: no cover
from openlineage.client.event_v2 import RunEvent # pragma: no cover
except ImportError: # pragma: no cover
from openlineage.client.run import RunEvent # pragma: no cover


from sqlalchemy.orm import Session
Expand Down
Loading