sanyamk23 opened a new pull request, #72347: URL: https://github.com/apache/airflow/pull/72347
## What Three related fixes bundled into one PR: 1. **`providers/common/sql/hooks/sql.py`**: `get_openlineage_authority_part()` now returns `None` when hostname is missing instead of crashing, and the return type is updated to `str | None`. 2. **`providers/trino/hooks/trino.py`**: `get_openlineage_database_info()` raises `AirflowOptionalProviderFeatureException` with a clear message when connection host is missing. 3. **`providers/openlineage/utils/utils.py`**: `DetachedInstanceError` is now a lazy import inside `safe_getattr()` — only imported when sqlalchemy is installed, preventing import errors when sqlalchemy is not present. ## Test plan - Existing provider tests continue to pass - Manual testing confirms graceful fallback when host is not configured Fixes #52419, #52243, #51780 -- 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]
