Skip to content

Support packed storage for full text index - #80852

Merged
rschu1ze merged 7 commits into
masterfrom
ahmadov/full-text-index-packed-support
Jun 9, 2025
Merged

rschu1ze merged 7 commits into
masterfrom
ahmadov/full-text-index-packed-support

Conversation

@ahmadov

@ahmadov ahmadov commented May 26, 2025 •

Copy link
Copy Markdown
Member

Resolves https://github.com/ClickHouse/clickhouse-private/issues/2801
Resolves https://github.com/ClickHouse/clickhouse-private/issues/15732

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Previously, packed storage was not supported for the full-text index, because the segment id was updated on-fly by reading and writing (.gin_sid) file on disk. In case of packed storage, reading a value from the uncommited file is not supported and this led to an issue.

To support packed and SMT storages, the segment id is now stored and updated internally in GinIndexStore and saved to disk only when the GIN index is finalized.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Previously, `packed` storage was not supported for the full-text index,
because the segment id was updated on-fly by reading and writing
(`.gin_sid`) file on disk. In case of packed storage, reading a value
from the uncommited file is not supported and this led to an issue.

To support `packed` and `SMT` storages, the segment id is now stored and
updated internally in `GinIndexStore` and saved to disk only when the
GIN index is finalized.
@ahmadov
ahmadov requested review from CurtizJ and rschu1ze May 26, 2025 15:40
@clickhouse-gh

clickhouse-gh Bot commented May 26, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7a9befb]

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label May 26, 2025
@CurtizJ CurtizJ self-assigned this May 27, 2025
rschu1ze

This comment was marked as resolved.

@rschu1ze

rschu1ze commented Jun 9, 2025

Copy link
Copy Markdown
Member

Stateless tests (release, ParallelReplicas, s3 storage)

Integration tests (asan, old analyzer, 4/6)

@rschu1ze
rschu1ze added this pull request to the merge queue Jun 9, 2025
Merged via the queue into master with commit f76c492 Jun 9, 2025
@rschu1ze
rschu1ze deleted the ahmadov/full-text-index-packed-support branch June 9, 2025 10:59
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements 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.

4 participants