Skip to content

Add test: No test for bloom filter text index on mapKeys with non-map comparison functions - #101724

Closed
clickgapai wants to merge 1 commit into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr77305
Closed

clickgapai wants to merge 1 commit into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr77305

Conversation

@clickgapai

Copy link
Copy Markdown
Contributor

Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.

Adds test coverage for 1 untested code path(s), found during automated review of PR #77305.

1. No test for bloom filter text index on mapKeys with non-map comparison functions
src/Storages/MergeTree/MergeTreeIndexBloomFilterText.cpp:592
Why this test: MergeTreeIndexBloomFilterText.cpp:571-592 — when traverseTreeEquals is called with map_key_index set and function_name is not a map function, the early return false at line 592 is never exercised by a
What's unique: The PR has NO test files in its diff. This test covers the specific code path (line 592) that was added by the fix — the early return false when map_key_index is set but the function is not a map-spec
Tags: -- Tags: no-fasttest — no-fasttest: uses ngrambf_v1 text index which is not available in fast test build, matching 02000_map_full_text_bloom_filter_index.sql

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

  • Documentation is written (mandatory for new features)

Found during review of PR #77305.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label May 2, 2026
@zlareb1

zlareb1 commented Aug 10, 2026

Copy link
Copy Markdown
Member

@groeneai can you take this up and open a new PR?

@zlareb1 zlareb1 closed this Aug 10, 2026
@groeneai

Copy link
Copy Markdown
Collaborator

Taking this up. Triaged against master 2850e469dcac84b before answering.

Verified: src/Storages/MergeTree/MergeTreeIndexBloomFilterText.cpp:592 still present; test passes on master and its output matches the committed reference.

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)

@groeneai

Copy link
Copy Markdown
Collaborator

Not re-filing this one, and here is the reason rather than silence.

The oracle does not observe the guard it names. Both coverage rows expect serverError CANNOT_PARSE_INPUT_ASSERTION_FAILED, and that throw comes from the value-type gate at MergeTreeIndexBloomFilterText.cpp:465, which is upstream of the :591 guard the test claims to cover. The rows would be satisfied identically with that guard deleted, or with no index on the table at all, so the test cannot fail for the reason it exists.

Covering the :591 guard needs an oracle downstream of the type gate - a query whose arguments pass :465 and then differ in whether :591 accepts them, asserted on granules read rather than on an error code.

This area also overlaps my own open #107076, so a fix here should be shaped against that rather than added alongside it.

The other six gaps from this batch's MergeTree/index group are resolved in #114305.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants