Repository: incubator-airflow Updated Branches: refs/heads/master 30b2b633b -> 3a6cdc865
[AIRFLOW-2551] Encode binary data with base64 standard rather than base64 url Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/975a45b0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/975a45b0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/975a45b0 Branch: refs/heads/master Commit: 975a45b0246eb836d653c7210651ecc9590c6db4 Parents: 4c6f1fd Author: Hongyi Wang <hong...@wepay.com> Authored: Fri Jun 1 11:29:17 2018 -0700 Committer: Hongyi Wang <hong...@wepay.com> Committed: Fri Jun 1 11:31:21 2018 -0700 ---------------------------------------------------------------------- airflow/contrib/operators/mysql_to_gcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/975a45b0/airflow/contrib/operators/mysql_to_gcs.py ---------------------------------------------------------------------- diff --git a/airflow/contrib/operators/mysql_to_gcs.py b/airflow/contrib/operators/mysql_to_gcs.py index bb52829..4d1bb7b 100644 --- a/airflow/contrib/operators/mysql_to_gcs.py +++ b/airflow/contrib/operators/mysql_to_gcs.py @@ -233,7 +233,7 @@ class MySqlToGoogleCloudStorageOperator(BaseOperator): elif isinstance(col_val, Decimal): col_val = float(col_val) elif col_type_dict.get(col_name) == "BYTES": - col_val = base64.urlsafe_b64encode(col_val) + col_val = base64.standard_b64encode(col_val) if PY3: col_val = col_val.decode('ascii') else: