pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/

Home Page:https://pingcap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

select cast(3.40282e37 as char) result is changed in master

seiya-annie opened this issue · comments

commented

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

in master:
$ select cast(3.40282e37 as char);
+--------------------------+
| cast(3.40282e37 as char) |
+--------------------------+
| 3.40282e37 |
+--------------------------+

in 8.0.0
$ select cast(3.40282e37 as char);
+----------------------------------------+
| cast(3.40282e37 as char) |
+----------------------------------------+
| 34028200000000000000000000000000000000 |
+----------------------------------------+

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

the result should be same

3. What did you see instead (Required)

result is changed

4. What is your TiDB version? (Required)

Git Commit Hash: 4fe70da

commented

/severity minor

commented

/remove-severity minor

commented

/severity major

commented

/remove-label may-affects-5.4

commented

/remove-label may-affects-6.1

commented

/remove-label may-affects-6.5

commented

/remove-label may-affects-7.1

commented

/remove-label may-affects-7.5