-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] MysqlTypeConverter cannot handle the datetime data type. #1761
Comments
@Clearvive @mchades could you provide some advise? |
At present, the date time type is not supported and requires issue support. Can you do this @hzxiongyinke ? |
@hzxiongyinke Or you can check if we can use our timestamp type instead |
Can you describe the differences between |
For differences between MySQL DATETIME and TIMESTAMP types, refer to https://dev.mysql.com/doc/refman/8.0/en/datetime.html. |
Before designing the Gravitino type system, we referenced the type systems of other open-source engines such as Substrait, Spark, Hive, and Trino. The design goal of the Gravitino type system is to provide a unified semantic and support user-defined types. As it stands, we are striving to cover the most commonly used types in data definition. Regarding the timestamp type of Gravitino, as described in the documentation:
We should be mindful of the differences between
Therefore, based on the principle of unified semantics, I believe that we should:
Obviously, our current mapping of MySQL However, my main concern is: Gravitino's What do you think? @jerryshao @FANNG1 @Clearvive |
I think Gravitino should provide a
|
) ### What changes were proposed in this pull request? - map `datetime` of MySQL to `timestamp` of Gravitino - map `timestamp` of MySQL to `timestamp_tz` type of Gravitino. ### Why are the changes needed? unify the type semantics Fix: #1761 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? tests added
) ### What changes were proposed in this pull request? - map `datetime` of MySQL to `timestamp` of Gravitino - map `timestamp` of MySQL to `timestamp_tz` type of Gravitino. ### Why are the changes needed? unify the type semantics Fix: #1761 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? tests added Co-authored-by: mchades <liminghuang@datastrato.com>
…rt (apache#3477) ### What changes were proposed in this pull request? - map `datetime` of MySQL to `timestamp` of Gravitino - map `timestamp` of MySQL to `timestamp_tz` type of Gravitino. ### Why are the changes needed? unify the type semantics Fix: apache#1761 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? tests added
Version
main branch
Describe what's wrong
Gravitino with mysql catalog, MysqlTypeConverter cannot handle the datetime data type.
Error message and/or stacktrace
How to reproduce
mysql> CREATE TABLE datetime_table ( id INT PRIMARY KEY, date_time DATETIME );
Additional context
I want to participate in fixing this bug. Can anyone give me some advice?
The text was updated successfully, but these errors were encountered: