forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIRFLOW-4423] Improve date handling in mysql to gcs operator. (apach…
…e#5196) * Handle TIME columns * Ensure DATETIME and TIMESTAMP columns treated as UTC
- Loading branch information
Showing
3 changed files
with
115 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,16 @@ The `elasticsearch_` prefix has been removed from all config items under the `[e | |
|
||
Updating to `google-cloud-storage >= 1.16` changes the signature of the upstream `client.get_bucket()` method from `get_bucket(bucket_name: str)` to `get_bucket(bucket_or_name: Union[str, Bucket])`. This method is not directly exposed by the airflow hook, but any code accessing the connection directly (`GoogleCloudStorageHook().get_conn().get_bucket(...)` or similar) will need to be updated. | ||
|
||
### Export MySQL timestamps as UTC | ||
|
||
`MySqlToGoogleCloudStorageOperator` now exports TIMESTAMP columns as UTC | ||
by default, rather than using the default timezone of the MySQL server. | ||
This is the correct behavior for use with BigQuery, since BigQuery | ||
assumes that TIMESTAMP columns without time zones are in UTC. To | ||
preserve the previous behavior, set `ensure_utc` to `False.` | ||
|
||
### Removal of Mesos Executor | ||
|
||
The Mesos Executor is removed from the code base as it was not widely used and not maintained. [Mailing List Discussion on deleting it](https://lists.apache.org/[email protected]:lte=1M:mesos). | ||
|
||
### Increase standard Dataproc disk sizes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters