Support DATE and DATETIME in MSSQLToGCSOperator#11540
Support DATE and DATETIME in MSSQLToGCSOperator#11540QuinRiva wants to merge 1 commit intoapache:masterfrom
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Is this something we should finish/merge @ashb/@kaxil ? it looks needed :) |
|
@potiuk This is about integration with Google, so looks like we'll have to take care of it. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
closes: #11370
JSON serialization thows errors if date/datetime fields are in the table. Converting those fields to strings before serialization solves this issue.
Additionally add the DATETIME (which is separate to timestamp) as a typemap for converting a field to bigquery. This has the unfortunate side-effect of converting DATE to DATETIME as the MSSQL DBAPI doesn't distinguish between DATE and DATETIME (both type 2).