summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/sql_complete.cpp
diff options
context:
space:
mode:
authorvityaman <[email protected]>2025-05-28 16:35:18 +0300
committerrobot-piglet <[email protected]>2025-05-28 17:13:12 +0300
commitd84972b06e6d5e001155d1be72189c6a2ef7e7ac (patch)
tree745fc1a17e5a1a6cd3d126c891a5dce445d30162 /yql/essentials/sql/v1/complete/sql_complete.cpp
parent0e99e7174068641c0a2c1170c796276c47bf553c (diff)
YQL-19747: Support cursor shifting on completion
Completion candidates comes unclosed from right and with zeroed `CursorShift`. In future there will be an atomic patch that will close candidates and set `CursorShift` correctly. Not it is zeroed to integrate with clients (e.g. YDB CLI). --- - Related to `YQL-19747` - Related to https://github.com/vityaman/ydb/issues/53 - Related to https://github.com/ydb-platform/ydb/issues/9056 --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1299 Co-authored-by: vvvv <[email protected]> commit_hash:38bcd21f0d6959275af89a981fd9b296374aea51
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 6602dace001..807786512e4 100644
--- a/yql/essentials/sql/v1/complete/sql_complete.cpp
+++ b/yql/essentials/sql/v1/complete/sql_complete.cpp
@@ -186,14 +186,14 @@ namespace NSQLComplete {
if constexpr (std::is_base_of_v<TFolderName, T>) {
name.Indentifier.append('/');
if (!context.Object->IsQuoted) {
- name.Indentifier = Quoted(std::move(name.Indentifier));
+ name.Indentifier.prepend('`');
}
return {ECandidateKind::FolderName, std::move(name.Indentifier)};
}
if constexpr (std::is_base_of_v<TTableName, T>) {
if (!context.Object->IsQuoted) {
- name.Indentifier = Quoted(std::move(name.Indentifier));
+ name.Indentifier.prepend('`');
}
return {ECandidateKind::TableName, std::move(name.Indentifier)};
}