Skip to content

Allow templated fields in AppFlow operators - #70440

Merged
shahar1 merged 1 commit into
apache:mainfrom
fat-catTW:fix-appflow-template-field-validation
Jul 27, 2026
Merged

Allow templated fields in AppFlow operators#70440
shahar1 merged 1 commit into
apache:mainfrom
fat-catTW:fix-appflow-template-field-validation

Conversation

@fat-catTW

Copy link
Copy Markdown
Contributor

AppFlow operators validated templated fields in their constructors, which rejected Jinja expressions before Airflow could render them.

This moves the AppFlow source and filter-date validation to execution time so templates are rendered before validation runs. The AppflowBaseOperator exemption is removed from the operator constructor validation list.

related: #70296

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

Generated-by: [Codex] following the guidelines


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

AppFlow operators validate template fields in constructors, so Jinja expressions are rejected before Airflow can render them. Move those checks to execution time so Dags can use templates while keeping the same runtime validation.
@fat-catTW
fat-catTW force-pushed the fix-appflow-template-field-validation branch from a7fe8d2 to 1db18ae Compare July 26, 2026 14:51
@fat-catTW

fat-catTW commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Good morning @shahar1
This PR has passed the CI. Could you please take a look when you have time?
Thanks you :D

@shahar1 shahar1 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.

Great work!

@shahar1 shahar1 removed the backport-to-v3-3-test Backport to v3-3-test label Jul 27, 2026
@shahar1
shahar1 merged commit 91a6a0f into apache:main Jul 27, 2026
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants