-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map MySQL TIMESTAMP types to TIMESTAMP WITH TIME ZONE
Before this change MySQL TIMESTAMP type was mapped to Trino TIMESTAMP type. However MySQL TIMESTAMP type has point-in-time semantics while Trino TIMESTAMP does not. Until we have an INSTANT type in Trino the closest matching type is TIMESTAMP WITH TIME ZONE so this commit changes the MySQL type mappings for MySQL's TIMESTAMP type to Trino's TIMESTAMP WITH TIME ZONE type. Note that MySQL DATETIME types are read as TIMESTAMP types and Trino TIMESTAMP types are inserted into MySQL as DATETIME types -- this behavior is unchanged. In other words, for reads and writes: MySQL Type Trino Type DATETIME TIMESTAMP TIMESTAMP TIMESTAMP WITH TIME ZONE
- Loading branch information
1 parent
cc82dec
commit fd5b247
Showing
7 changed files
with
1,054 additions
and
46 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
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
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
Oops, something went wrong.