diff options
| author | vokayndzop <[email protected]> | 2025-08-08 16:11:35 +0300 |
|---|---|---|
| committer | vokayndzop <[email protected]> | 2025-08-08 16:39:46 +0300 |
| commit | 2c274bc53d8b06b40ef04a656f5665e0ba94a63d (patch) | |
| tree | 3a1f44a67a369d3860ddbe6d6dadf50222f3af0d /yql/essentials/sql/v1/query.cpp | |
| parent | 950c5567a0edd38282fce2860727a9cfa9e3a9ac (diff) | |
Watermarks: DDL
commit_hash:64ad6b4138ee27f474b440e8ef3e07fac1935346
Diffstat (limited to 'yql/essentials/sql/v1/query.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/query.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/query.cpp b/yql/essentials/sql/v1/query.cpp index ffbfd669ac9..e0da16ff05d 100644 --- a/yql/essentials/sql/v1/query.cpp +++ b/yql/essentials/sql/v1/query.cpp @@ -862,6 +862,20 @@ public: ctx.IncrementMonCounter("sql_errors", "NormalizeHintError"); return false; } + + if ("watermark" == hintName) { + TNodePtr option = Y(BuildQuotedAtom(Pos_, hintName)); + auto anyColumnSrc = BuildAnyColumnSource(Pos_); + for (auto& x : hint.second) { + if (!x->Init(ctx, anyColumnSrc.Get())) { + return false; + } + option = L(option, x); + } + Nodes_.push_back(Q(option)); + continue; + } + TNodePtr option = Y(BuildQuotedAtom(Pos_, hintName)); for (auto& x : hint.second) { if (!x->Init(ctx, src)) { |
