diff options
author | vityaman <vityaman.dev@yandex.ru> | 2025-05-20 12:50:28 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-05-20 13:07:06 +0300 |
commit | 16630d4dfad772e0108e694f76f922e486cd6439 (patch) | |
tree | 9502ff9057dfb71a94154f66a3e6452bf684c8fd /yql/essentials/sql/v1/complete/syntax | |
parent | 2cca5c2b53580983c51f00239859e45d4bc32836 (diff) | |
download | ydb-16630d4dfad772e0108e694f76f922e486cd6439.tar.gz |
YQL-19747: Support USE statement
Introduce global analysis which will be extended with more ParseTree analysis later.
---
- Related to `YQL-19747`
- Related to https://github.com/vityaman/ydb/issues/40
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1281
commit_hash:848fb3fdd6bc9612769c47d66198fca018ff465f
Diffstat (limited to 'yql/essentials/sql/v1/complete/syntax')
-rw-r--r-- | yql/essentials/sql/v1/complete/syntax/local.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/syntax/local.h b/yql/essentials/sql/v1/complete/syntax/local.h index 9675eb9e843..635485d2b7c 100644 --- a/yql/essentials/sql/v1/complete/syntax/local.h +++ b/yql/essentials/sql/v1/complete/syntax/local.h @@ -42,6 +42,10 @@ namespace NSQLComplete { TString Path; THashSet<EObjectKind> Kinds; bool IsQuoted = false; + + bool HasCluster() const { + return !Cluster.empty(); + } }; TKeywords Keywords; |