desusaiteja opened a new pull request, #69788: URL: https://github.com/apache/airflow/pull/69788
Adds a dedicated unit test module for `airflow.providers.google.cloud.transfers.bigquery_to_sql`, which previously had no tests of its own — it is one of the missing provider test modules tracked in #35442. The new `providers/google/tests/unit/google/cloud/transfers/test_bigquery_to_sql.py` covers the abstract `BigQueryToSqlBaseOperator` (the base for the BigQuery→MySQL/Postgres/MsSQL transfer operators) through a minimal concrete subclass: - `dataset_table` parsing into `dataset_id`/`table_id`, including the `ValueError` for malformed values - `BigQueryHook` construction with the operator's `gcp_conn_id`, `location`, and `impersonation_chain` - `execute()` fetching from BigQuery and inserting every batch into the target SQL table with the right `target_fields`, `replace`, and `commit_every` arguments - `persist_links()` being invoked with the task context - `get_openlineage_facets_on_complete()` returning empty lineage when the BigQuery table cannot be fetched or the SQL hook provides no database info (the happy paths are already covered by the concrete operators' tests) All 9 new tests pass locally, along with the existing bigquery_to_mysql/postgres/mssql test modules and the fast/manual prek static checks. related: #35442 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Fable 5) Generated-by: Claude Code (Fable 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
