Skip to content

Tests: Add coverage for hasAnyTokens/hasAllTokens on non-indexed FixedString - #88210

Merged
fm4v merged 1 commit into
ClickHouse:masterfrom
zlareb1:test/add-search-non-indexed-cases
Oct 8, 2025
Merged

fm4v merged 1 commit into
ClickHouse:masterfrom
zlareb1:test/add-search-non-indexed-cases

Conversation

@zlareb1

@zlareb1 zlareb1 commented Oct 7, 2025 •

Copy link
Copy Markdown
Member

This PR improves the test coverage for the brute-force fallback mechanism in hasAnyTokens and hasAllTokens when they are used on columns without a text index.

Specifically, this change adds:

  1. A test case for non-indexed FixedString columns to ensure all supported string types are validated.
  2. Edge case validation for empty needle arrays ([]).

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):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@CLAassistant

CLAassistant commented Oct 7, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@zlareb1
zlareb1 requested a review from fm4v October 7, 2025 19:01
@clickhouse-gh

clickhouse-gh Bot commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [8794b03]

Summary: ✅

@fm4v fm4v added the can be tested Allows running workflows for external contributors label Oct 7, 2025
@fm4v fm4v self-assigned this Oct 7, 2025
@fm4v

fm4v commented Oct 7, 2025

Copy link
Copy Markdown
Member

Please squash and force push to remove commit from Ubuntu user

@zlareb1
zlareb1 force-pushed the test/add-search-non-indexed-cases branch 2 times, most recently from 01c4076 to 4a9e00d Compare October 8, 2025 05:05
@zlareb1

zlareb1 commented Oct 8, 2025

Copy link
Copy Markdown
Member Author

Please squash and force push to remove commit from Ubuntu user

Sorry for the oversight. Please review it now that I have fixed the commit history.

@zlareb1 zlareb1 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 8, 2025
Adds comprehensive tests for the brute-force fallback mechanism in
`hasAnyTokens` and `hasAllTokens` when no text index is present.

- Adds a specific test case for non-indexed `FixedString` columns to
  ensure all supported types are covered.
- Includes edge case validation for empty needle arrays (`[]`) and
  rows containing empty strings (`''`).
@zlareb1
zlareb1 force-pushed the test/add-search-non-indexed-cases branch from 4a9e00d to 8794b03 Compare October 8, 2025 08:55
@fm4v
fm4v added this pull request to the merge queue Oct 8, 2025
Merged via the queue into ClickHouse:master with commit aa0aa2c Oct 8, 2025
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 8, 2025

@rschu1ze rschu1ze left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zlareb1 Thanks - but please fix my comments.

rschu1ze added a commit that referenced this pull request Oct 12, 2025
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 pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants