Repository navigation
Add system.stemmers - #100611
Add system.stemmers#100611
system.stemmers#100611Conversation
|
Workflow [PR], commit [0401257] Summary: ✅
AI ReviewSummaryThe PR adds the Final VerdictStatus: ✅ Approve |
There was a problem hiding this comment.
Pull request overview
Adds a new system.stemmers system table to expose the list of available libstemmer stemmers (languages/aliases) that can be used with the stem() NLP function.
Changes:
- Registers
system.stemmersin system table attachment (guarded byUSE_NLP). - Implements
StorageSystemStemmersto enumerate available stemmers viasb_stemmer_list(). - Adds user documentation for
system.stemmers.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/Storages/System/attachSystemTables.cpp |
Conditionally attaches the new system.stemmers table when USE_NLP is enabled. |
src/Storages/System/StorageSystemStemmers.h |
Declares the new system storage for listing stemmers. |
src/Storages/System/StorageSystemStemmers.cpp |
Implements the table by reading stemmer names from libstemmer. |
src/Storages/System/CMakeLists.txt |
Excludes StorageSystemStemmers.cpp if the stemmer contrib target isn’t available. |
docs/en/operations/system-tables/stemmers.md |
Documents the new system.stemmers system table and provides an example query/output. |
| Shows all available stemmers. | ||
| These can be used in the function [stem](../../sql-reference/functions/nlp-functions.md). |
There was a problem hiding this comment.
The docs don't mention that querying system.stemmers is blocked unless allow_experimental_nlp_functions=1 (the table throws SUPPORT_IS_DISABLED). Also, the listed values come from sb_stemmer_list() (e.g. english, porter), which may not match the stem() function docs that describe ISO-639-1 codes—please clarify in this page what exact identifiers the name column contains and how to use them with stem().
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
`aspell-dict.txt` was deleted in master along with the `aspell` and `codespell` style checks. Removing the file here so the PR can merge cleanly without a modify/delete conflict.
|
Dear @rschu1ze, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 29/29 (100.00%) | Lost baseline coverage: none · Uncovered code |
Add `system.stemmers`
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added system table
system.stemmerswhich shows all available stemmers languages that can be specified for thestemfunction.Documentation entry for user-facing changes
Version info
26.7.1.31