diff options
author | vvvv <[email protected]> | 2025-06-18 15:12:37 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2025-06-18 15:49:04 +0300 |
commit | 379a419911ee1bbb93f56085133712fa5d8c3112 (patch) | |
tree | c68bfc7f62d5a601925ee586521da83ab69ea791 /yql/essentials/sql/v0/context.h | |
parent | f96379cdde0b2b470d341cb8df3c4866478a3b1c (diff) |
YQL-20086 sql
commit_hash:b06f3d2f5fa81e2073966eb172758758bd94fdf2
Diffstat (limited to 'yql/essentials/sql/v0/context.h')
-rw-r--r-- | yql/essentials/sql/v0/context.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/yql/essentials/sql/v0/context.h b/yql/essentials/sql/v0/context.h index 6e669fff5a5..4c08659ce68 100644 --- a/yql/essentials/sql/v0/context.h +++ b/yql/essentials/sql/v0/context.h @@ -39,14 +39,14 @@ namespace NSQLTranslationV0 { template <typename TToken> const TString& Token(const TToken& token) { - Position.Row = token.GetLine(); - Position.Column = token.GetColumn() + 1; + Position_.Row = token.GetLine(); + Position_.Column = token.GetColumn() + 1; return token.GetValue(); } template <typename TToken> TPosition TokenPosition(const TToken& token) { - TPosition pos = Position; + TPosition pos = Position_; pos.Row = token.GetLine(); pos.Column = token.GetColumn() + 1; return pos; @@ -68,7 +68,7 @@ namespace NSQLTranslationV0 { } TMaybe<TString> GetClusterProvider(const TString& cluster, TString& normalizedClusterName) const { - auto provider = ClusterMapping.GetClusterProvider(cluster, normalizedClusterName); + auto provider = ClusterMapping_.GetClusterProvider(cluster, normalizedClusterName); if (!provider) { if (Settings.AssumeYdbOnClusterWithSlash && cluster.StartsWith('/')) { normalizedClusterName = cluster; @@ -100,11 +100,11 @@ namespace NSQLTranslationV0 { void PopBlockShortcuts(); void BodyPart() { - IntoHeading = false; + IntoHeading_ = false; } bool IsParseHeading() const { - return IntoHeading; + return IntoHeading_; } bool DeclareVariable(const TString& varName, const TNodePtr& typeNode); @@ -116,13 +116,13 @@ namespace NSQLTranslationV0 { IOutputStream& MakeIssue(NYql::ESeverity severity, NYql::TIssueCode code, NYql::TPosition pos); private: - NYql::TPosition Position; - THolder<TStringOutput> IssueMsgHolder; - NSQLTranslation::TClusterMapping ClusterMapping; - TString PathPrefix; - THashMap<TString, TString> ProviderPathPrefixes; - THashMap<TString, TString> ClusterPathPrefixes; - bool IntoHeading = true; + NYql::TPosition Position_; + THolder<TStringOutput> IssueMsgHolder_; + NSQLTranslation::TClusterMapping ClusterMapping_; + TString PathPrefix_; + THashMap<TString, TString> ProviderPathPrefixes_; + THashMap<TString, TString> ClusterPathPrefixes_; + bool IntoHeading_ = true; public: THashMap<TString, TNodePtr> Variables; @@ -181,16 +181,16 @@ namespace NSQLTranslationV0 { template <typename TToken> const TString& Token(const TToken& token) { - return Ctx.Token(token); + return Ctx_.Token(token); } template <typename TToken> TString Identifier(const TToken& token) { - return IdContent(Ctx, Token(token)); + return IdContent(Ctx_, Token(token)); } TString Identifier(const TString& str) const { - return IdContent(Ctx, str); + return IdContent(Ctx_, str); } TNodePtr GetNamedNode(const TString& name); @@ -212,6 +212,6 @@ namespace NSQLTranslationV0 { TString AltDescription(const google::protobuf::Message& node, ui32 altCase, const google::protobuf::Descriptor* descr) const; protected: - TContext& Ctx; + TContext& Ctx_; }; } // namespace NSQLTranslationV0 |