diff options
author | vityaman <[email protected]> | 2025-06-02 13:23:33 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-06-02 13:49:48 +0300 |
commit | f8dd75681a31f8b883f1c69db243a1ded8bb8d94 (patch) | |
tree | 4175cf2925fdc77e7f45bb9f84b65cc06a1a6829 /yql/essentials/sql/v1/complete/analysis/global/global.cpp | |
parent | 70ff3797ac5c7fd31a1f092b4074dee5668fa0b1 (diff) |
YQL-19747: Complete named expressions
- Introduced scoped name collection at global analysis
- Added `BingingsNameService` constructed after global analysis and united with the base service.
- Added dollar detection at local analysis.
After this point design should be reexamined and module should be refactored.
---
- Related to `YQL-19747`
- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/57
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1304
commit_hash:a7bf41703f0ee846e359407b53a5d62fc05928ea
Diffstat (limited to 'yql/essentials/sql/v1/complete/analysis/global/global.cpp')
-rw-r--r-- | yql/essentials/sql/v1/complete/analysis/global/global.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/analysis/global/global.cpp b/yql/essentials/sql/v1/complete/analysis/global/global.cpp index 9acb3310fac..c5f33ae8297 100644 --- a/yql/essentials/sql/v1/complete/analysis/global/global.cpp +++ b/yql/essentials/sql/v1/complete/analysis/global/global.cpp @@ -1,5 +1,6 @@ #include "global.h" +#include "named_node.h" #include "parse_tree.h" #include "use.h" @@ -48,7 +49,9 @@ namespace NSQLComplete { TGlobalContext ctx; + // TODO(YQL-19747): Add ~ParseContext(Tokens, ParseTree, CursorPosition) ctx.Use = FindUseStatement(sqlQuery, &Tokens_, input.CursorPosition, env); + ctx.Names = CollectNamedNodes(sqlQuery, &Tokens_, input.CursorPosition); return ctx; } |