nrnavaneet opened a new pull request, #53138:
URL: https://github.com/apache/airflow/pull/53138
### What
Fixes a KeyError that occurs when BigQuery job results return an empty
schema or no 'fields' key.
### Why
Some queries like external table creation return an empty schema ({}),
causing `schema["fields"]` to raise a KeyError.
### How
- Updated `_format_schema_for_description` to safely handle None or missing
'fields' key.
- Added unit tests to cover:
- Normal schema
- Empty schema
- Schema with missing 'fields'
Closes: #53127
--
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]