[
https://issues.apache.org/jira/browse/AIRFLOW-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393204#comment-16393204
]
ASF subversion and git services commented on AIRFLOW-1588:
----------------------------------------------------------
Commit 27835f4b843bd6b2a472592a11b27f71a724b77f in incubator-airflow's branch
refs/heads/master from [~diraol]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;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
JSON).
Closes #3037 from diraol/fix1588-json-parsing
> Incorrect json parsing when importing integer variable values
> -------------------------------------------------------------
>
> Key: AIRFLOW-1588
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1588
> 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
(v7.6.3#76005)