Skip to content

Conversation

@evgenyslab
Copy link
Contributor

This PR adds an explicit string cast to the trigger_run_id parameter to avoid cases when a stringified integer value is provided as a run_id but its recast by either python or jinja (with render_template_as_native_obj=True and Param type set to string).

For example, if run id's are represented as integers, Airflow's run model uses varchar type, however python or jinja forces the run id into an integer causing this lookup to fail.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Copy link
Contributor

@dirrao dirrao left a comment

Choose a reason for hiding this comment

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

LGTM

@dirrao dirrao requested a review from potiuk January 13, 2024 13:04
@jscheffl jscheffl added the type:bug-fix Changelog: Bug Fixes label Jan 13, 2024
@jscheffl jscheffl added this to the Airflow 2.8.1 milestone Jan 13, 2024
@jscheffl jscheffl merged commit e2335a0 into apache:main Jan 13, 2024
ephraimbuddy pushed a commit that referenced this pull request Jan 15, 2024
…sed as strings instead of integers (#36756)

(cherry picked from commit e2335a0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants