Skip to content

google providers 10.19.0 bigquery operators directly depends on openlineage package #40043

Description

@ahidalgob

Apache Airflow Provider(s)

google

Versions of Apache Airflow Providers

10.19.0

Apache Airflow version

2.7.0+

Operating System

linux

Deployment

Google Cloud Composer

Deployment details

No response

What happened

pull/39614 refactored _BigQueryOpenLineageMixin and now bigquery operators directly import from openlineage package, even when Open Lineage provider is not installed, so importing any BigQuery operator fails with ImportError

I can create the PR to fix it

What you think should happen instead

Imports should happen lazily, only when get_openlineage_facets_on_complete is called.

How to reproduce

Install Google Providers package 10.19.0 without openlineage package installed

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions