summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/sql_complete.cpp
diff options
context:
space:
mode:
authorvityaman <[email protected]>2025-04-02 15:37:42 +0300
committerrobot-piglet <[email protected]>2025-04-02 15:53:10 +0300
commit9728f9489a1c25e2b2e1e7959fa662a389f68db8 (patch)
treece9061c436c9e73f7a6119119349f0be2c7b4b61 /yql/essentials/sql/v1/complete/sql_complete.cpp
parent18a74248135f1108b545fb7e04607445925b764d (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/sql_complete.cpp')
-rw-r--r--yql/essentials/sql/v1/complete/sql_complete.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yql/essentials/sql/v1/complete/sql_complete.cpp b/yql/essentials/sql/v1/complete/sql_complete.cpp
index b3ddda2b23f..b73aafe0a4f 100644
--- a/yql/essentials/sql/v1/complete/sql_complete.cpp
+++ b/yql/essentials/sql/v1/complete/sql_complete.cpp
@@ -127,11 +127,11 @@ namespace NSQLComplete {
lexers.Antlr4Pure = NSQLTranslationV1::MakeAntlr4PureLexerFactory();
lexers.Antlr4PureAnsi = NSQLTranslationV1::MakeAntlr4PureAnsiLexerFactory();
- INameService::TPtr names = MakeStaticNameService(MakeDefaultNameSet());
+ INameService::TPtr names = MakeStaticNameService(MakeDefaultNameSet(), MakeDefaultRanking());
return MakeSqlCompletionEngine([lexers = std::move(lexers)](bool ansi) {
return NSQLTranslationV1::MakeLexer(
- lexers, ansi, /* antlr4 = */ true,
+ lexers, ansi, /* antlr4 = */ true,
NSQLTranslationV1::ELexerFlavor::Pure);
}, std::move(names));
}