Repository navigation
Add test: arrayNorm over Array(BFloat16) (widen-to-Float32 kernel path) is untested across the whole suite - #106644
Conversation
|
Pre-PR Validation Gate (per ClickGap pipeline): a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [9160411] Summary: ✅ AI ReviewSummary
Missing context / blind spots
Final Verdict
|
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 546 line(s), 44 function(s) across 135 file(s) · Details Top files
|
a099632
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #106211.
That PR The PR rewrites the row loop of
arrayNorm(L1Norm/L2Norm/L2SquaredNorm/LinfNorm/LpNorm) into a single batched, manually-unrolled kernelnormBatchImpl(unroll_count=16) with runtime CPU dispatch to anx86_64_v4(AVX-512) specialisation viaMULTITARGET_FUNCTION_X86_V4/ `isArchSuppor1.
arrayNormoverArray(BFloat16)(widen-to-Float32 kernel path) is untested across the whole suitesrc/Functions/array/arrayNorm.cpp:202,src/Functions/array/arrayNorm.cpp:270Risk:
getReturnTypeImplmapsTypeIndex::BFloat16->DataTypeFloat32(arrayNorm.cpp:202-204), andexecuteWithResultTypedispatches toexecuteWithTypes<Float32, BFloat16>which calls the newnormBatchImplkernel that widens each element viastatic_cast<ResultType>(row_data[i])(arrayNorm.cpp:168/175). No stateless or integration test ever passes a BFloat16 array to these functions. Risk: a broken BFloat16->Float32 widening or a dropped BFloat16 switch case would silently return wrong norms …What's unique vs PR tests: The PR ships no tests; the only existing norm test (02283_array_norm.sql) covers Array(UInt8)/Array(Int32)/Array(Float32)/Array(Float64). This test is the sole coverage of the Array(BFloat16) widening instantiation that the PR's new kernel explicitly handles.
Try it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.6.1.613