Repository navigation
Add test: ColumnIPv6 per-row indexing in FunctionStringHashFixedString only tested with identical values across rows - #103885
clickgapai wants to merge 2 commits into
Conversation
|
Workflow [PR], commit [413d840] Summary: ❌
|
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe the failure is related to this test, please comment with details and the bot will re-evaluate. |
|
This PR has accumulated 5 CI failures that don't reference its test, so the bot has not attempted any fix. Closing — please re-run CI or comment if you'd like the bot to look again. |
|
The bot has tried to address CI failures on this PR 5 times without a successful push (logs unavailable / context insufficient / plan rejected). Stopping further auto-fix attempts on |
|
CI failure in |
|
CI failure in |
|
CI failure in |
|
ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
CI failure in |
|
@groeneai can you take this up and open a new PR? |
|
Taking this up. Triaged against master Verified: It will be re-filed as part of an area-grouped PR rather than its own PR, to keep reviewer load down (26 in this batch plus 18 from the earlier one today). Full triage and the grouping plan: #101781 (comment) |
|
Re-filed as #114260, grouped with the other five functions/types tests from this batch rather than as its own PR, to keep reviewer load down. Adopted with a stronger oracle. |
Re-files six test-only coverage PRs that were closed without merging, at the request of their author. Each test was verified to be non-vacuous by mutating the exact line it claims to cover and requiring the test to fail; the arms and their controls are listed below. - 04201_dot_product_const_nonconst_size_mismatch: the size check in arrayDotProduct's one-constant-argument path. The existing 02708_dotProduct covers only equal sizes there, and the two-non-constant path throws from a different site with a different message. - 04201_array_index_of_count_equal_nullable_value: the null_map row skip shared by has/indexOf/countEqual. Only has() reached it before. Trimmed to Nullable(UInt64): with Nullable(String) the nested default never equals an array element, so that variant cannot detect the regression. - 04201_json_extract_keys_and_values_low_cardinality_input: LowCardinality stripping for the two functions that force their return type. Only JSONExtract exercised it with a non-constant LowCardinality column. - 04329_like_fixedstring_constant_match_everything: the matches-everything shortcut for a FixedString haystack. Existing FixedString LIKE tests all use substantive patterns. Keeps one row per template instantiation (LIKE / NOT LIKE / ILIKE / match). - 04146_ipv6_hashing_distinct_values: per-row indexing when hashing an IPv6 column. 02998_ipv6_hashing repeats a single value, so it cannot detect a regression that always reads row 0. - 04201_windowID_hop_time_overflow: the hop-window overflow guard, which is duplicated in the windowID and hop code paths. Neither copy was tested; mutating one reddens only its own row, so both are now pinned. Every argument carries an explicit timezone because an unqualified DateTime literal is read in the session timezone, which CI randomizes across the overflow boundary. Related: ClickHouse#103918 Related: ClickHouse#103922 Related: ClickHouse#103940 Related: ClickHouse#107447 Related: ClickHouse#103885 Related: ClickHouse#103931
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #60359 (merged 2024-02-28). Confirmed on current codebase — close with a note if already fixed.
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 #60359.
That PR PR fixes per-row indexing bug in
FunctionStringHashFixedString::executeImplColumnIPv6branch atsrc/Functions/FunctionsStringHashFixedString.cpp:316 (post-fix line 334). ForColumnIPv6, the underlying container isPaddedPODArray<IPv6>where each element is already 16 bytes, so `&data[i *1.
ColumnIPv6per-row indexing inFunctionStringHashFixedStringonly tested with identical values across rowssrc/Functions/FunctionsStringHashFixedString.cpp:334Risk: The PR fixed
&data[i * length]->&data[i]at line 334 (was 282 in the diff). PR's own02998_ipv6_hashing.sqlusesmaterialize('fe80::62:5aff:fed1:daf0')so all 10 rows hash to the same valueWhat's unique vs PR tests: PR's
02998_ipv6_hashing.sqlmaterializes a SINGLE IPv6 value across 10 rows — all hashes are identical, so a regression that always reads row 0 (or any other fixed row) would still produce identicalTags:
-- Tags: no-fasttest—no-fasttest: Hash functions likeSHA256require OpenSSL viaUSE_SSLbuild flag, which is disabled in the fast-test build. Same tag is used by the PR's own02998_ipv6_hashing.sqland by02184_hash_functions_and_ip_types.sql.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