apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
36.43k stars 14.11k forks source link

XCom Display for INT value shows error in web UI #41514

Closed jscheffl closed 1 month ago

jscheffl commented 1 month ago

Apache Airflow version

2.10.0rc1

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When one task returns an integer value, the "new" XCom display shows an error JSON instead of the value like:

image

Noteworthy>: JSON or string or empty value works.

What you think should happen instead?

The real INT value should be displayed

How to reproduce

Run the DAG example_dynamic_task_mapping and check the XCom result of "add_one" task

Operating System

not relevant

Versions of Apache Airflow Providers

not relevant

Deployment

Official Apache Airflow Helm Chart

Deployment details

not relevant

Anything else?

No response

Are you willing to submit PR?

Code of Conduct

jscheffl commented 1 month ago

okay, same problem for bool and float.

tirkarthi commented 1 month ago

Faced similar issue : https://github.com/apache/airflow/pull/39918#issuecomment-2248601544