airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-1588) Incorrect json parsing when importing integer variable values
Date Fri, 09 Mar 2018 17:23:00 GMT


ASF subversion and git services commented on AIRFLOW-1588:

Commit 27835f4b843bd6b2a472592a11b27f71a724b77f in incubator-airflow's branch refs/heads/master
from [~diraol]
[;h=27835f4 ]

[AIRFLOW-1588] Cast Variable value to string

Variables are considered a "Key-Value" pair, and usually the values are
considered as strings (like when encrypting/decrypting with fernet key).
Thus, we need to cast it to string before storing it (when loaded from a

Closes #3037 from diraol/fix1588-json-parsing

> Incorrect json parsing when importing integer variable values
> -------------------------------------------------------------
>                 Key: AIRFLOW-1588
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 1.8.0
>            Reporter: Georges Kohnen
>            Priority: Major
> When exporting the airflow variables to a json file, integer variables get exported without
a quote, e.g.:
>     "dataproc_default_timeout": 60,
> However, when importing that same json file again, these values without quotes get ignored,
and the variables are not set. When adding quotes around the integer values in the json file,
parsing happens correctly, e.g.:
>     "dataproc_default_timeout": "60",

This message was sent by Atlassian JIRA

View raw message