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

Insert into Datetime64 column the result is not correct #4680

Closed
BohuTANG opened this issue Apr 2, 2022 · 2 comments · Fixed by #4720
Closed

Insert into Datetime64 column the result is not correct #4680

BohuTANG opened this issue Apr 2, 2022 · 2 comments · Fixed by #4720
Assignees
Labels
A-query Area: databend query C-bug Category: something isn't working

Comments

@BohuTANG
Copy link
Member

BohuTANG commented Apr 2, 2022

Summary

main branch:

mysql> create table t(d32 datetime32, d64 datetime64);

mysql> insert into t values('2022-04-02 15:10:28', '2022-04-02 15:10:28');
mysql> insert into t values('2022-04-02 15:10:28.221', '2022-04-02 15:10:28.221');

mysql> select * from t;
+---------------------+-------------------------+
| d32                 | d64                     |
+---------------------+-------------------------+
| 2022-04-02 15:10:28 | 1970-01-20 02:01:52.228 |
| 2022-04-02 15:10:28 | 1970-01-20 02:01:52.228 |
+---------------------+-------------------------+
@BohuTANG BohuTANG added C-bug Category: something isn't working A-query Area: databend query labels Apr 2, 2022
@alitrack
Copy link

alitrack commented Apr 3, 2022

maybe related to arrow-rs/issues/1459

@sundy-li
Copy link
Member

sundy-li commented Apr 3, 2022

maybe related to arrow-rs/issues/1459

It's not. It's related to custom precision. I'm refactoring the deserilization now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query Area: databend query C-bug Category: something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants