Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicit string cast required to force integer-type run_ids to be passed as strings instead of integers #36756

Merged
merged 1 commit into from
Jan 13, 2024

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.

@boring-cyborg boring-cyborg bot added the area:core-operators Operators, Sensors and hooks within Core Airflow label Jan 12, 2024
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
53 checks passed
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
area:core-operators Operators, Sensors and hooks within Core Airflow type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants