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

cast: convert float value to json have different precision with MySQL #25032

Closed
AilinKid opened this issue Jun 1, 2021 · 4 comments
Closed
Labels
severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug. wontfix This issue will not be fixed.

Comments

@AilinKid
Copy link
Contributor

AilinKid commented Jun 1, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a json);
insert into t values("323232323.3232323232");
select * from t;

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

MySQL

mysql> select * from t;
+-------------------+
| a                 |
+-------------------+
| 323232323.3232323 |
+-------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

TiDB

mysql> select * from t;
+--------------------+
| a                  |
+--------------------+
| 323232323.32323235 |
+--------------------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

master

@AilinKid AilinKid added type/bug The issue is confirmed as a bug. sig/community-infra sig/sql-infra SIG: SQL Infra labels Jun 1, 2021
@xiongjiwei

This comment has been minimized.

@AilinKid AilinKid changed the title ddl: convert float value to json have different precision with MySQL cast: convert float value to json have different precision with MySQL Aug 3, 2021
@AilinKid AilinKid added sig/execution SIG execution and removed sig/community-infra sig/sql-infra SIG: SQL Infra labels Aug 3, 2021
@djshow832
Copy link
Contributor

Maybe it's duplicate with #22791

@xiongjiwei
Copy link
Contributor

we have a document that says the difference

@djshow832 djshow832 added the wontfix This issue will not be fixed. label Dec 6, 2021
@github-actions
Copy link

github-actions bot commented Dec 6, 2021

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug. wontfix This issue will not be fixed.
Projects
None yet
Development

No branches or pull requests

4 participants