diff options
author | vityaman <[email protected]> | 2025-05-16 15:20:12 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-05-16 15:32:43 +0300 |
commit | 31441fb3a8e27eb1c9f1125b55dd4a83d9310fc0 (patch) | |
tree | 2a764a46b132583068cae75b4784cfce4e19aef6 /yql/essentials/sql/v1/complete/sql_complete_ut.cpp | |
parent | edf3984195d81a1f0cddd1feb785d151f1a5d113 (diff) |
YQL-19747: Ignore type_id completions and table_key
Fixes superfluous candidates (`OPTIONAL`, `CALLABLE`, ...) at `SELECT * FROM #`.
---
- Related to `YQL-19747`
- Related to https://github.com/ydb-platform/ydb/issues/9056
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1273
commit_hash:d34d81ea86b8b6b5d339174be20d14d0371c3de6
Diffstat (limited to 'yql/essentials/sql/v1/complete/sql_complete_ut.cpp')
-rw-r--r-- | yql/essentials/sql/v1/complete/sql_complete_ut.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/yql/essentials/sql/v1/complete/sql_complete_ut.cpp b/yql/essentials/sql/v1/complete/sql_complete_ut.cpp index dd083c5a301..9352f3fd71d 100644 --- a/yql/essentials/sql/v1/complete/sql_complete_ut.cpp +++ b/yql/essentials/sql/v1/complete/sql_complete_ut.cpp @@ -495,18 +495,6 @@ Y_UNIT_TEST_SUITE(SqlCompleteTests) { {ClusterName, "example"}, {ClusterName, "yt:saurus"}, {Keyword, "ANY"}, - {Keyword, "CALLABLE"}, - {Keyword, "DICT"}, - {Keyword, "ENUM"}, - {Keyword, "FLOW"}, - {Keyword, "LIST"}, - {Keyword, "OPTIONAL"}, - {Keyword, "RESOURCE"}, - {Keyword, "SET"}, - {Keyword, "STRUCT"}, - {Keyword, "TAGGED"}, - {Keyword, "TUPLE"}, - {Keyword, "VARIANT"}, }; UNIT_ASSERT_VALUES_EQUAL(Complete(engine, "SELECT * FROM "), expected); } @@ -590,18 +578,6 @@ Y_UNIT_TEST_SUITE(SqlCompleteTests) { { TVector<TCandidate> expected = { {TableName, "`maxim`"}, - {Keyword, "CALLABLE"}, - {Keyword, "DICT"}, - {Keyword, "ENUM"}, - {Keyword, "FLOW"}, - {Keyword, "LIST"}, - {Keyword, "OPTIONAL"}, - {Keyword, "RESOURCE"}, - {Keyword, "SET"}, - {Keyword, "STRUCT"}, - {Keyword, "TAGGED"}, - {Keyword, "TUPLE"}, - {Keyword, "VARIANT"}, }; UNIT_ASSERT_VALUES_EQUAL(Complete(engine, "SELECT * FROM yt:saurus."), expected); } |