summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorudovichenko-r <[email protected]>2025-04-24 15:21:27 +0300
committerudovichenko-r <[email protected]>2025-04-24 15:54:55 +0300
commit5b94662350ec60d0b3457ee9512f2ba7bca6f288 (patch)
tree6eb9f332015c8c636a8d60fd6eed2f668f63717b
parent161ecf84d5fd2bfd842e91ac2f628e9ca2e900da (diff)
Fix column group calculation for a single group
commit_hash:f8138b2300bb8c3beed8d27d4688beb4dc2c6f3a
-rw-r--r--yt/yql/providers/yt/provider/yql_yt_physical_finalizing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yql/providers/yt/provider/yql_yt_physical_finalizing.cpp b/yt/yql/providers/yt/provider/yql_yt_physical_finalizing.cpp
index a24102fd0c2..7fb50451cfd 100644
--- a/yt/yql/providers/yt/provider/yql_yt_physical_finalizing.cpp
+++ b/yt/yql/providers/yt/provider/yql_yt_physical_finalizing.cpp
@@ -3013,7 +3013,7 @@ private:
if (!groups.empty()) {
groupSpec = NYT::TNode::CreateMap();
// If we keep all groups then use the group with max size as default
- if (allGroups && maxGrpIt != groups.end()) {
+ if (allGroups && maxGrpIt != groups.end() && (groups.size() > 1 || usage.FullUsage[i])) {
groupSpec["default"] = NYT::TNode::CreateEntity();
groups.erase(maxGrpIt);
}