Repository navigation
Fix full-text index type name in the inverted index error message - #72055
Merged
Merged
Conversation
ruslandoga
commented
Nov 19, 2024
| /// TODO: remove this at the end of 2024. | ||
| if (index.type == INVERTED_INDEX_NAME) | ||
| throw Exception(ErrorCodes::ILLEGAL_INDEX, "Indexes of type 'inverted' are no longer supported. Please drop and recreate the index as type 'full-text'"); | ||
| throw Exception(ErrorCodes::ILLEGAL_INDEX, "Indexes of type 'inverted' are no longer supported. Please drop and recreate the index as type 'full_text'"); |
Contributor
Author
There was a problem hiding this comment.
Using full-text doesn't work and returns the following error message
Syntax error: failed at position 55 (''full-text''):
ALTER TABLE events_v2 ADD INDEX ft_idx(pathname) TYPE 'full-text';
Expected one of: expression with optional parameters, function, function name, compound identifier, identifier
or without quotes
Syntax error: failed at position 59 ('-'):
ALTER TABLE events_v2 ADD INDEX ft_idx(pathname) TYPE full-text;
Expected one of: token sequence, Dot, token, OpeningRoundBracket, GRANULARITY, FIRST, AFTER, Comma, INTO OUTFILE, FORMAT, SETTINGS, end of query
ruslandoga
commented
Nov 19, 2024
| @@ -748,7 +748,7 @@ MergeTreeIndexGranulePtr MergeTreeIndexFullText::createIndexGranule() const | |||
| /// have an old index. | |||
| /// TODO: remove this at the end of 2024. | |||
Contributor
Author
There was a problem hiding this comment.
This blog post still uses inverted indexes. Removing the error message without updating the blog post might be a bit confusing. It's one of the first results when searching for "Text Search ClickHouse" on Google.
alexey-milovidov
approved these changes
Nov 19, 2024
Contributor
|
Dear @alexey-milovidov, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
alexey-milovidov
approved these changes
Dec 25, 2024
22 tasks
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.
👋
Changelog category (leave one):
CI Settings (Only check the boxes if you know what you are doing):