Add precision as parameter for format readable functions#104648
Conversation
|
@rschu1ze thanks for taking a look! 😄 |
|
Workflow [PR], commit [d2720eb] Summary: ❌
AI ReviewSummaryThis PR adds an optional constant Final VerdictStatus: ✅ Approve |
This comment was marked as resolved.
This comment was marked as resolved.
9138ab1 to
eeea088
Compare
…precision-param-format-readable-funcs
|
@groeneai Make yourself useful (and Nvidia stocks go up) and fix |
|
@rschu1ze attribution and plan for the three tests:
Session: |
|
Third of the three flaky tests in this bundle is now in flight: #105484 — bumps the hardcoded Bundle status:
CIDB pattern for 02345: 23 master hits across 4 distinct PRs over the last 30 days, all on |
@groeneai Please make a note to stop pinging me on unrelated PRs. When talking about flaky checks and its fixes, just mention the PR, no need to mention the author. Otherwise I get multiple pings that are completely unrelated to my work (I had half a dozen related to this exact fix I've made) |
|
@Algunenano Noted, sorry for the noise. Going forward, when referencing a sibling fix PR in a thread the author isn't subscribed to, I'll use the bare PR number (e.g. |
@rschu1ze is there anything else I can help with as the failures on PR seem to be unrelated? Basically we have to wait for the fixes to land on master, I can then rebase and when the checks pass we merge? |
|
@antoniofilipovic All good, no need to do anything else from your side. I'll take over. |
…precision-param-format-readable-funcs
LLVM Coverage Report
Changed lines: 98.10% (103/105) | lost baseline coverage: 1 line(s) · Uncovered code |
82517ee
…-add-precision-param-format-readable-funcs Add precision as parameter for format readable functions

Closes: #61549
The
formatReadableSize,formatReadableDecimalSizeandformatReadableQuantityfunctions previously hard-coded two digits after the decimal point. This PR adds an optional constUInt8as the second argumentprecision:The default of 2 preserves prior behavior, so the change is fully backward compatible. The argument is validated as a constant UInt8, which rejects negative numbers. Also, non-constant columns are rejected.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
User can now specify an optional precision argument to the
formatReadableSize,formatReadableDecimalSizeandformatReadableQuantityfunctions, controlling the number of digits after the decimal point. Default is 2, preserving the prior behavior.Version info
26.6.1.90