Skip to content

Fix DataFusion storage-type error message on Python 3.11+ - #73413

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-storage-type-enum-message
Sep 20, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-storage-type-enum-message

Conversation

@potiuk

@potiuk potiuk commented Sep 20, 2026

Copy link
Copy Markdown
Member

The scheduled Tests (AMD) run on main (https://github.com/apache/airflow/actions/runs/35515068767) fails test_gcs_provider_requires_connection_config and test_s3_provider_requires_connection_config in the common.sql DataFusion object storage provider on Python 3.11, 3.12, 3.13 and 3.14, in both the Non-DB providers and the lowest-deps provider jobs.

StorageType is a str, Enum mixin. Starting with Python 3.11, Enum.__format__ renders such members as StorageType.GCS rather than the value gcs, so the connection_config must be provided for ... messages stopped naming the storage type users actually configure. The f-strings were introduced in #73296, whose PR CI only ran on the default Python 3.10 where the value is still rendered, so the regression surfaced in the canary run.

Formatting .value restores the intended message on every supported Python version. Verified locally: the two tests fail on Python 3.12 before this change and pass on Python 3.10 and 3.12 after it.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

🤖 Generated with Claude Code

The scheduled CI run on main fails the common.sql datafusion object
storage tests on Python 3.11 through 3.14. `StorageType` is a
`str, Enum` mixin, and starting with Python 3.11 `Enum.__format__`
renders such members as `StorageType.GCS` instead of `gcs`, so the
"connection_config must be provided" messages no longer name the
storage type users configure. The PR that introduced the f-strings
only ran on the default Python 3.10, where the value is rendered.

Generated-by: Claude Opus 5

@aaron-y-chen aaron-y-chen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@potiuk
potiuk merged commit 471b82e into apache:main Sep 20, 2026
76 checks passed
@potiuk
potiuk deleted the fix-storage-type-enum-message branch September 20, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants