Skip to content

Fix full-text index type name in the inverted index error message - #72055

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
ruslandoga:patch-1
Dec 25, 2024
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
ruslandoga:patch-1

Conversation

@ruslandoga

@ruslandoga ruslandoga commented Nov 19, 2024 •

Copy link
Copy Markdown
Contributor

👋

Changelog category (leave one):

  • Not for changelog

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

CI Settings (Only check the boxes if you know what you are doing):

  • Allow: All Required Checks
  • Allow: Stateless tests
  • Allow: Stateful tests
  • Allow: Integration Tests
  • Allow: Performance tests
  • Allow: All Builds
  • Allow: batch 1, 2 for multi-batch jobs
  • Allow: batch 3, 4, 5, 6 for multi-batch jobs

  • Exclude: Style check
  • Exclude: Fast test
  • Exclude: All with ASAN
  • Exclude: All with TSAN, MSAN, UBSAN, Coverage
  • Exclude: All with aarch64, release, debug

  • Run only fuzzers related jobs (libFuzzer fuzzers, AST fuzzers, etc.)
  • Exclude: AST fuzzers

  • Do not test
  • Woolen Wolfdog
  • Upload binaries for special builds
  • Disable merge-commit
  • Disable CI cache

@ruslandoga ruslandoga changed the title Fix index type name in the error message Fix full-text index type name in the error message 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'");

@ruslandoga ruslandoga Nov 19, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

@@ -748,7 +748,7 @@ MergeTreeIndexGranulePtr MergeTreeIndexFullText::createIndexGranule() const
/// have an old index.
/// TODO: remove this at the end of 2024.

@ruslandoga ruslandoga Nov 19, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

@ruslandoga ruslandoga changed the title Fix full-text index type name in the error message Fix full-text index type name in the inverted index error message Nov 19, 2024
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Nov 19, 2024
@alexey-milovidov alexey-milovidov self-assigned this Nov 19, 2024
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 19, 2024
@clickhouse-gh

clickhouse-gh Bot commented Dec 24, 2024

Copy link
Copy Markdown
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 alexey-milovidov self-assigned this Dec 25, 2024
@alexey-milovidov
alexey-milovidov merged commit 43e8bef into ClickHouse:master Dec 25, 2024
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 25, 2024
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.

4 participants