diff options
| author | vityaman <[email protected]> | 2025-04-02 15:37:42 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-04-02 15:53:10 +0300 |
| commit | 9728f9489a1c25e2b2e1e7959fa662a389f68db8 (patch) | |
| tree | ce9061c436c9e73f7a6119119349f0be2c7b4b61 /yql/essentials/sql/v1/complete/syntax/grammar.cpp | |
| parent | 18a74248135f1108b545fb7e04607445925b764d (diff) | |
YQL-19747 Introduce types and functions ranking
- [x] Fix bug with incorrect no-case sorting.
- [x] Get names from `sql_functions.json` and `types.json`.
- [x] Add types and functions ranking according to `rules_corr_basic.json` data via a `PartialSort`.
- [x] Add benchmark workspace.
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1167
commit_hash:84d93265fb69bf5651f905d6af038056657e9a16
Diffstat (limited to 'yql/essentials/sql/v1/complete/syntax/grammar.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/complete/syntax/grammar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yql/essentials/sql/v1/complete/syntax/grammar.cpp b/yql/essentials/sql/v1/complete/syntax/grammar.cpp index 4274d4bfb44..c8f5a2e4a8f 100644 --- a/yql/essentials/sql/v1/complete/syntax/grammar.cpp +++ b/yql/essentials/sql/v1/complete/syntax/grammar.cpp @@ -1,6 +1,6 @@ #include "grammar.h" -#include <yql/essentials/sql/v1/format/sql_format.h> +#include <yql/essentials/sql/v1/reflect/sql_reflect.h> namespace NSQLComplete { @@ -44,7 +44,7 @@ namespace NSQLComplete { std::unordered_set<TTokenId> ComputeKeywordTokens() { const auto& vocabulary = GetVocabulary(); - const auto keywords = NSQLFormat::GetKeywords(); + const auto keywords = NSQLReflect::LoadLexerGrammar().KeywordNames; auto keywordTokens = GetAllTokens(); std::erase_if(keywordTokens, [&](TTokenId token) { |
