Skip to content

Export FanOutMapper and wait policies from airflow.partition_mappers#69309

Open
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:export-partition-fanout-symbols
Open

Export FanOutMapper and wait policies from airflow.partition_mappers#69309
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:export-partition-fanout-symbols

Conversation

@Lee-W

@Lee-W Lee-W commented Jul 3, 2026

Copy link
Copy Markdown
Member

Why

  • Core package root already exports all sibling mappers/windows — these 3 were the only gap.
  • Task SDK's matching package exports all three, so core was inconsistent with it.
  • Not a user-blocking issue — the deep-import path (e.g. airflow.partition_mappers.temporal.FanOutMapper) always worked, and serialization uses the full submodule path regardless.

What

  • Add FanOutMapper (from .temporal), plus MinimumCount and WaitForAll (from .wait_policy), to the package root imports and __all__.
  • Add a test asserting all three are importable from the root and present in __all__.

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

  • 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.

The package root exported every mapper and window except FanOutMapper,
WaitForAll, and MinimumCount, while the Task SDK package already exports
all three. Align the core exports with their siblings and the SDK.
@Lee-W Lee-W force-pushed the export-partition-fanout-symbols branch from 0e50f60 to 5f9fdc9 Compare July 3, 2026 08:27
@Lee-W Lee-W marked this pull request as ready for review July 3, 2026 09:05
@Lee-W Lee-W requested a review from dstandish as a code owner July 3, 2026 09:05
@Lee-W Lee-W self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant