aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-romanov <Anton.Romanov@ydb.tech>2023-07-04 07:31:04 +0300
committera-romanov <Anton.Romanov@ydb.tech>2023-07-04 07:31:04 +0300
commitc541f1f8a775a74e4b2782f7157591e507566164 (patch)
tree265d98490f0941c1a5e5c865af17c9f30b79b5cf
parent9872bd553bcf72e2661bf0598b67f10e4a254744 (diff)
downloadydb-c541f1f8a775a74e4b2782f7157591e507566164.tar.gz
YQL-8971 YQL-15555 Disable unique and distinct for aggregation by session.
-rw-r--r--ydb/library/yql/core/yql_expr_constraint.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/library/yql/core/yql_expr_constraint.cpp b/ydb/library/yql/core/yql_expr_constraint.cpp
index 3e825ada92..5636b71b7f 100644
--- a/ydb/library/yql/core/yql_expr_constraint.cpp
+++ b/ydb/library/yql/core/yql_expr_constraint.cpp
@@ -3076,6 +3076,9 @@ private:
}
TStatus AggregateWrap(const TExprNode::TPtr& input, TExprNode::TPtr& /*output*/, TExprContext& ctx) const {
+ if (HasSetting(input->Tail(), "session"))
+ return TStatus::Ok;
+
if (const auto size = input->Child(1)->ChildrenSize()) {
std::vector<std::string_view> columns;
columns.reserve(size);