Repository navigation
Web UI: recognize BFloat16 as a floating point number - #110433
Conversation
In the Web UI (`play.html`), the `BFloat16` type was not recognized as a number, so its columns were not right-aligned nor colorized like other numeric columns. Extend the numeric type detection to also match `BFloat16`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [b4e5074] Summary: ✅
AI ReviewSummaryThis PR extends Play's result-type normalization so Final Verdict
|
|
The failure of Merged master to re-run CI. |
|
The |
`JSONCompact` keeps wrapper type names in the result metadata, so a column such as `LowCardinality(BFloat16)` reached the numeric-type check as the literal string `LowCardinality(BFloat16)` and failed the prefix match, leaving it left-aligned and uncolorized. Strip an outer `Nullable` or `LowCardinality` wrapper before testing the base type.
|
The CI run before this branch was updated to latest
@groeneai, please check whether #109114 already covers the arm_release stress failure above; if not, could you investigate and provide a fix in a separate PR? |
|
@alexey-milovidov Yes, #109114 covers this arm_release failure; no separate PR needed. The stress abort (STID 2228-453d, WITH t AS (SELECT number, * FROM numbers(3))
SELECT *, (SELECT t.number WHERE t.number >= 0) AS r FROM t;Same root cause #109114 fixes: Verified locally on the #109114 branch, both directions:
The other two reds are as you noted: |
alexey-milovidov
left a comment
There was a problem hiding this comment.
Trivial. LGTM.
|
All four reds of the latest finished run (commit 62da4c8) are unrelated to this one-line
Merged |
Address AI review (#110433): the previous normalization only stripped a single outer `Nullable` or `LowCardinality` wrapper, so a column whose result-set metadata carries a scalar value type behind another wrapper - e.g. `SimpleAggregateFunction(sum, BFloat16)` or `SimpleAggregateFunction(sum, Nullable(BFloat16))` - was still classified as non-numeric and stayed left-aligned and uncolorized. Peel transparent scalar wrappers (`Nullable`, `LowCardinality`, `SimpleAggregateFunction`) recursively down to the underlying value type before running the numeric/date regexes. `AggregateFunction` is intentionally left alone: its values are opaque serialized states, not scalars, so they should stay left-aligned and uncolorized. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The test asserts `QueryConditionCacheHits` on the instance-wide query condition cache. A parallel sibling test that drops or renames any UUID-less (path-keyed) `MergeTree` table calls `Context::clearCaches`, which wipes the query condition cache, so an expected cache hit turns into a miss and the test output differs from the reference. Confirmed from a failed CI run: `CurrentMetric_QueryConditionCacheEntries` dropped from 331 to 1 exactly between the test's cache-populating query and the query expected to hit the cache, with no `SYSTEM DROP QUERY CONDITION CACHE` in the server log. All other tests asserting query condition cache hits are already tagged no-parallel for the same reason. Failures: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110433&sha=62da4c8be297d0ee37833fc6d0af32868f4bbc9f&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 ClickHouse#110433 ClickHouse#110630 Co-Authored-By: Claude Fable 5 <[email protected]>
Address AI review (ClickHouse#110433): the previous normalization only stripped a single outer `Nullable` or `LowCardinality` wrapper, so a column whose result-set metadata carries a scalar value type behind another wrapper - e.g. `SimpleAggregateFunction(sum, BFloat16)` or `SimpleAggregateFunction(sum, Nullable(BFloat16))` - was still classified as non-numeric and stayed left-aligned and uncolorized. Peel transparent scalar wrappers (`Nullable`, `LowCardinality`, `SimpleAggregateFunction`) recursively down to the underlying value type before running the numeric/date regexes. `AggregateFunction` is intentionally left alone: its values are opaque serialized states, not scalars, so they should stay left-aligned and uncolorized. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…mber Web UI: recognize BFloat16 as a floating point number
The test asserts `QueryConditionCacheHits` on the instance-wide query condition cache. A parallel sibling test that drops or renames any UUID-less (path-keyed) `MergeTree` table calls `Context::clearCaches`, which wipes the query condition cache, so an expected cache hit turns into a miss and the test output differs from the reference. Confirmed from a failed CI run: `CurrentMetric_QueryConditionCacheEntries` dropped from 331 to 1 exactly between the test's cache-populating query and the query expected to hit the cache, with no `SYSTEM DROP QUERY CONDITION CACHE` in the server log. All other tests asserting query condition cache hits are already tagged no-parallel for the same reason. Failures: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110433&sha=62da4c8be297d0ee37833fc6d0af32868f4bbc9f&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 ClickHouse#110433 ClickHouse#110630 Co-Authored-By: Claude Fable 5 <[email protected]>
In the Web UI (
play.html), theBFloat16type was not recognized as a number. As a result,BFloat16columns were not right-aligned and were not colorized like other numeric columns. This extends the numeric type detection regex to also matchBFloat16.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
In the Web UI (Play),
BFloat16is now recognized as a floating point number and its columns are right-aligned and colorized accordingly.Version info
26.7.1.1103(included in26.7and later)