-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use correct abbreviations for data quantities #13095
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla. |
If you search the issue and PR history this has been discussed several time before. At this point we can not change this behavior. |
Hi @dain - I spent a good 30 mins looking, but I couldn't see any previous issues or PRs on this topic. In any case, it's your project. Is there any value in the tests I wrote for the CLI FormatUtils class? I'd be happy to modify the relevant test to fit the current behavior and submit them in a separate PR. |
It seems that @martint may be ok with this for the CLI |
Cool - I'll do the CLA thing. |
Fixing the CLI is correct in isolation but will introduce inconsistency with Trino built-in function Wonder how we proceed here. |
I think it would be better to keep the base-2 units and simply add the |
Oops - I submitted this PR from my master branch, then I needed to sync back for another change. I'll submit another PR with a different branch and reference this one. |
Replaced by #14859 |
Description
The Trino CLI currently reports data size incorrectly, using the legacy, 1,024-based, values for K, M, G etc rather than the modern 1,000-based values.
Fix
CLI
This change corrects the display of data sizes in the CLI to use 1,000-based units.
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: