Bug #108428 format_bytes length bug
Submitted: 8 Sep 2022 13:52 Modified: 12 Sep 2022 9:20
Reporter: Feng Jing Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: DML Severity:S3 (Non-critical)
Version:5.7, 8.0 OS:Any
Assigned to: CPU Architecture:Any

[8 Sep 2022 13:52] Feng Jing
Description:
select format_bytes(-1071050000);
-1021.43 MiB
the length is 12

How to repeat:
select format_bytes(-1071050000);

Suggested fix:
set the type is varchar(12)
[12 Sep 2022 9:20] MySQL Verification Team
Hello Feng Jing,

Thank you for the report.

regards,
Umesh