Simplify handling of old 'inverted' indexes#64846
Merged
nikitamikhaylov merged 1 commit intoClickHouse:masterfrom Jun 5, 2024
Merged
Simplify handling of old 'inverted' indexes#64846nikitamikhaylov merged 1 commit intoClickHouse:masterfrom
nikitamikhaylov merged 1 commit intoClickHouse:masterfrom
Conversation
Contributor
|
This is an automated comment for commit 8bdd291 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
Member
|
Upgrade check - #64860 |
nikitamikhaylov
approved these changes
Jun 5, 2024
rschu1ze
added a commit
to rschu1ze/ClickHouse
that referenced
this pull request
Jun 10, 2024
Index types 'annoy' and 'usearch' were removed and replaced by 'vector_similarity' indexes in an earlier commit. This means unfortuantely, that if customers have tables with these indexes and upgrade, their database might not start anymore - the system loads the metadata at startup, thinks something is wrong with such tables, and halts immediately. This commit adds support for loading and attaching such indexes back. Data insert or use (search) return an error which recommends a migration to 'vector_similarity' indexes. The implementation is generally similar to what has recently been implemented for 'full_text' indexes [1, 2]. [1] ClickHouse#64656 [2] ClickHouse#64846
rschu1ze
added a commit
to rschu1ze/ClickHouse
that referenced
this pull request
Aug 12, 2024
Index types 'annoy' and 'usearch' were removed and replaced by 'vector_similarity' indexes in an earlier commit. This means unfortuantely, that if customers have tables with these indexes and upgrade, their database might not start anymore - the system loads the metadata at startup, thinks something is wrong with such tables, and halts immediately. This commit adds support for loading and attaching such indexes back. Data insert or use (search) return an error which recommends a migration to 'vector_similarity' indexes. The implementation is generally similar to what has recently been implemented for 'full_text' indexes [1, 2]. [1] ClickHouse#64656 [2] ClickHouse#64846
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is follow-up to #64656.
The earlier PR added a "backdoor" (for the lack of a better word) to enable the load of old
inverted-type indexes. The backdoor requires settingallow_experimental_inverted_indexto be 0. Chances are that this setting was set in the server configuration as 1, meaning that the backdoor will not cover the load of tables at system startup.With this PR, things are simplified: Tables with old
invertedindexes can now always be loaded at startup, assuming thatallow_experimental_inverted_indexis 1. To encourage a migration tofull_textindexes, an exception is thrown wheninvertedindexes are used (this did not change compared to #64656).Changelog category (leave one):