diff options
| author | Alexander Smirnov <[email protected]> | 2025-04-01 00:52:07 +0000 |
|---|---|---|
| committer | Alexander Smirnov <[email protected]> | 2025-04-01 00:52:07 +0000 |
| commit | 7b1dd0572a50d5e1d1dc0d973dd7b686ec5d1cfa (patch) | |
| tree | 77b99773cdbad1af81f9e310eebc0d9f361dafba /yql/essentials/sql/v1/query.cpp | |
| parent | 4ae39ac0db24e7564f13a3d0545a540bd647283c (diff) | |
| parent | 0afdf94708e28c1ce387764b1a93c32da0cd2350 (diff) | |
Merge branch 'rightlib' into merge-libs-250401-0050
Diffstat (limited to 'yql/essentials/sql/v1/query.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/query.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/yql/essentials/sql/v1/query.cpp b/yql/essentials/sql/v1/query.cpp index 8e886064784..fc18200b513 100644 --- a/yql/essentials/sql/v1/query.cpp +++ b/yql/essentials/sql/v1/query.cpp @@ -3677,9 +3677,10 @@ TNodePtr BuildAnalyze(TPosition pos, const TString& service, const TDeferredAtom class TShowCreateNode final : public TAstListNode { public: - TShowCreateNode(TPosition pos, const TTableRef& tr, TScopedStatePtr scoped) + TShowCreateNode(TPosition pos, const TTableRef& tr, const TString& type, TScopedStatePtr scoped) : TAstListNode(pos) , Table(tr) + , Type(type) , Scoped(scoped) , FakeSource(BuildFakeSource(pos)) { @@ -3691,9 +3692,9 @@ public: if (!Table.Options->Init(ctx, src)) { return false; } - Table.Options = L(Table.Options, Q(Y(Q("showCreateTable")))); + Table.Options = L(Table.Options, Q(Y(Q(Type)))); } else { - Table.Options = Y(Q(Y(Q("showCreateTable")))); + Table.Options = Y(Q(Y(Q(Type)))); } bool asRef = ctx.PragmaRefSelect; @@ -3741,12 +3742,14 @@ public: } private: TTableRef Table; + // showCreateTable, showCreateView, ... + TString Type; TScopedStatePtr Scoped; TSourcePtr FakeSource; }; -TNodePtr BuildShowCreate(TPosition pos, const TTableRef& tr, TScopedStatePtr scoped) { - return new TShowCreateNode(pos, tr, scoped); +TNodePtr BuildShowCreate(TPosition pos, const TTableRef& tr, const TString& type, TScopedStatePtr scoped) { + return new TShowCreateNode(pos, tr, type, scoped); } class TBaseBackupCollectionNode |
