Skip to content
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

DATETIME should be an alias for TIMESTAMP, now databend TIMESTAMP is an alias for DATETIME. #5009

Closed
BohuTANG opened this issue Apr 23, 2022 · 0 comments · Fixed by #5031
Closed
Assignees

Comments

@BohuTANG
Copy link
Member

DATETIME should be an alias for TIMESTAMP, now databend TIMESTAMP is an alias for DATETIME.

mysql> create table t2(a timestamp);
Query OK, 0 rows affected (0.07 sec)
Read 0 rows, 0 B in 0.019 sec., 0 rows/sec., 0 B/sec.

mysql> desc t2;
+-------+-------------+------+---------+-------+
| Field | Type        | Null | Default | Extra |
+-------+-------------+------+---------+-------+
| a     | DATETIME(6) | NO   | 0       |       |
+-------+-------------+------+---------+-------+

See:
https://docs.snowflake.com/en/sql-reference/data-types-datetime.html#datetime
https://duckdb.org/docs/sql/data_types/timestamp
https://www.cockroachlabs.com/docs/stable/timestamp.html (CRDB has no DATETIME type)

cc @Veeupup @sundy-li

Originally posted by @BohuTANG in #4997 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants