Skip to content

Fix S3ToAzureBlobStorageOperator failing on S3 folder markers - #76408

Merged
shahar1 merged 2 commits into
apache:mainfrom
yuseok89:s3-to-wasb-folder-markers
Nov 6, 2026
Merged

shahar1 merged 2 commits into
apache:mainfrom
yuseok89:s3-to-wasb-folder-markers

Conversation

@yuseok89

@yuseok89 yuseok89 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

S3ToAzureBlobStorageOperator fails with InvalidKeyComponents when s3_prefix has its own folder marker, which the S3 console creates for every folder. Other folder markers are copied as empty blobs next to the files.

This applies the overlap-aware rule from #65724, #72497 and #72892. Markers with other keys under them are skipped and logged, while a lone marker like lonely/ is kept.

Before / After

Verified against real S3 and Azure Blob with s3_prefix="folder", listing folder/src/, folder/src/file.txt and folder/lonely/.

With folder/ Without folder/
Before fails with InvalidKeyComponents lonely/, src/, src/file.txt
After lonely/, src/file.txt lonely/, src/file.txt

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    • Claude Code (Opus 5.5)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@yuseok89
yuseok89 force-pushed the s3-to-wasb-folder-markers branch from 90e5a77 to b5af95c Compare November 4, 2026 02:58
@yuseok89
yuseok89 marked this pull request as ready for review November 5, 2026 04:48
@eladkal
eladkal requested review from dabla and o-nikolas November 5, 2026 05:45

@o-nikolas o-nikolas 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.

One nit, but otherwise looks good.

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.

4 participants