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

date_format of string to time with "\n" has different behavior with MySQL #4036

Closed
mengxin9014 opened this issue Feb 15, 2022 · 0 comments · Fixed by #4046
Closed

date_format of string to time with "\n" has different behavior with MySQL #4036

mengxin9014 opened this issue Feb 15, 2022 · 0 comments · Fixed by #4046
Assignees
Labels

Comments

@mengxin9014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (a char(32));
alter table t set tiflash replica 1;
insert into t values ("2022-02-01
16:33:00");
set tidb_enforce_mpp = 1;
select cast(a as datetime) from t;

2. What did you expect to see? (Required)

+---------------------+
| cast(a as datetime) |
+---------------------+
| NULL                |
+---------------------+

3. What did you see instead (Required)

+----------------------+
| cast(a as datetime)  |
+----------------------+
| 2022-02-01 16:33:00  |
+----------------------+

4. What is your TiFlash version? (Required)

5.3.0

@mengxin9014 mengxin9014 added the type/bug The issue is confirmed as a bug. label Feb 15, 2022
@mengxin9014 mengxin9014 self-assigned this Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant