diff options
author | aneporada <aneporada@yandex-team.com> | 2024-11-27 20:33:50 +0300 |
---|---|---|
committer | aneporada <aneporada@yandex-team.com> | 2024-11-27 21:03:10 +0300 |
commit | cfdb4b3209284edfbcb39ff8ec7dfc7b86ab0077 (patch) | |
tree | 77b5974940e7faf51f4fe1a1eea2fd20e29a0740 /yql/essentials/sql/v1 | |
parent | 5ae93cf6a49513cc999774c6545bcfff16a32f59 (diff) | |
download | ydb-cfdb4b3209284edfbcb39ff8ec7dfc7b86ab0077.tar.gz |
Enable CompactNamedExprs by default. Deprecate DisableCompactNamedExprs
commit_hash:600b62ee71ee1c8295f5bae5410dcf5370a73654
Diffstat (limited to 'yql/essentials/sql/v1')
-rw-r--r-- | yql/essentials/sql/v1/context.h | 2 | ||||
-rw-r--r-- | yql/essentials/sql/v1/sql_query.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/yql/essentials/sql/v1/context.h b/yql/essentials/sql/v1/context.h index f40a8ec557..6f5ce7b8f4 100644 --- a/yql/essentials/sql/v1/context.h +++ b/yql/essentials/sql/v1/context.h @@ -321,7 +321,7 @@ namespace NSQLTranslationV1 { bool BlockEngineForce = false; bool UnorderedResult = false; ui64 ParallelModeCount = 0; - bool CompactNamedExprs = false; + bool CompactNamedExprs = true; bool ValidateUnusedExprs = false; bool AnsiImplicitCrossJoin = false; // select * from A,B bool DistinctOverWindow = false; diff --git a/yql/essentials/sql/v1/sql_query.cpp b/yql/essentials/sql/v1/sql_query.cpp index cc4c538a82..37cd7ea1eb 100644 --- a/yql/essentials/sql/v1/sql_query.cpp +++ b/yql/essentials/sql/v1/sql_query.cpp @@ -3047,6 +3047,9 @@ TNodePtr TSqlQuery::PragmaStatement(const TRule_pragma_stmt& stmt, bool& success Ctx.CompactNamedExprs = true; Ctx.IncrementMonCounter("sql_pragma", "CompactNamedExprs"); } else if (normalizedPragma == "disablecompactnamedexprs") { + Ctx.Warning(Ctx.Pos(), TIssuesIds::YQL_DEPRECATED_PRAGMA) + << "Deprecated pragma DisableCompactNamedExprs - it will be removed soon. " + "Consider submitting bug report if CompactNamedExprs doesn't work for you"; Ctx.CompactNamedExprs = false; Ctx.IncrementMonCounter("sql_pragma", "DisableCompactNamedExprs"); } else if (normalizedPragma == "validateunusedexprs") { |