bool(LazySelectSequence)
can return None
#43977
Labels
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.10.3
If "Other Airflow 2 version" selected, which one?
No response
What happened?
The downstream effect is that
What you think should happen instead?
In this case an empty list should be returned
The root cause is that
LazySelectSequence
's__bool__
method is not airtight. I don't understand the internals well enough to know why this is so, but this is clearly an internal error, given a valid template:How to reproduce
"{{ ti.xcom_pull(task_ids=['a', 'b', 'c'], key='return_value') | map(attribute=0) | list }}"
Skip
or otherwise do not return a valueOperating System
Ubuntu 24.04.1
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: