You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bo...@apache.org on 2017/09/11 11:11:01 UTC
incubator-airflow git commit: [AIRFLOW-1586] Add mapping for date
type to mysql_to_gcs operator
Repository: incubator-airflow
Updated Branches:
refs/heads/master 5b978b28b -> e83012589
[AIRFLOW-1586] Add mapping for date type to mysql_to_gcs operator
Closes #2589 from mikeghen/bug/airflow-1586
Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/e8301258
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/e8301258
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/e8301258
Branch: refs/heads/master
Commit: e83012589bc6ac97421d462e32ab80ae05bb9817
Parents: 5b978b2
Author: Mike Ghen <mi...@gmail.com>
Authored: Mon Sep 11 13:10:31 2017 +0200
Committer: Bolke de Bruin <bo...@xs4all.nl>
Committed: Mon Sep 11 13:10:37 2017 +0200
----------------------------------------------------------------------
airflow/contrib/operators/mysql_to_gcs.py | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/e8301258/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 1a2312f..374567b 100644
--- a/airflow/contrib/operators/mysql_to_gcs.py
+++ b/airflow/contrib/operators/mysql_to_gcs.py
@@ -210,6 +210,7 @@ class MySqlToGoogleCloudStorageOperator(BaseOperator):
FIELD_TYPE.TINY: 'INTEGER',
FIELD_TYPE.BIT: 'INTEGER',
FIELD_TYPE.DATETIME: 'TIMESTAMP',
+ FIELD_TYPE.DATE: 'TIMESTAMP',
FIELD_TYPE.DECIMAL: 'FLOAT',
FIELD_TYPE.NEWDECIMAL: 'FLOAT',
FIELD_TYPE.DOUBLE: 'FLOAT',