amoghrajesh commented on code in PR #77370: URL: https://github.com/apache/airflow/pull/77370#discussion_r4652428465
########## providers/common/io/src/airflow/providers/common/io/xcom/backend.py: ########## @@ -66,7 +66,14 @@ def _get_compression_suffix(compression: str) -> str: @cache def _get_base_path() -> ObjectStoragePath: - return ObjectStoragePath(conf.get_mandatory_value(SECTION, "xcom_objectstorage_path")) + path = conf.get_mandatory_value(SECTION, "xcom_objectstorage_path") + # Reads only resolve URLs, so a schemeless path would read back as the path string. + if not urlsplit(path).scheme: + raise ValueError( Review Comment: Added a line to the `xcom_objectstorage_path` description saying a scheme is required once the threshold is 0 or higher, with `file:///path/to/xcom` for local storage. Regenerated `get_provider_info.py` too -- 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]
