@@ -70,6 +70,7 @@ struct TTotalStatistics {
7070 TAggregate ResultBytes;
7171 TAggregate ResultRows;
7272 TAggregate IngressBytes;
73+ TAggregate IngressDecompressedBytes;
7374 TAggregate IngressRows;
7475 TAggregate EgressBytes;
7576 TAggregate EgressRows;
@@ -288,6 +289,8 @@ void WriteNamedNode(NYson::TYsonWriter& writer, NJson::TJsonValue& node, const T
288289 totals.ResultRows .Add (*sum);
289290 } else if (name == " IngressBytes" ) {
290291 totals.IngressBytes .Add (*sum);
292+ } else if (name == " IngressDecompressedBytes" ) {
293+ totals.IngressDecompressedBytes .Add (*sum);
291294 } else if (name == " IngressRows" ) {
292295 totals.IngressRows .Add (*sum);
293296 } else if (name == " EgressBytes" ) {
@@ -457,6 +460,7 @@ TString GetV1StatFromV2Plan(const TString& plan, double* cpuUsage) {
457460 totals.ResultBytes .Write (writer, " ResultBytes" );
458461 totals.ResultRows .Write (writer, " ResultRows" );
459462 totals.IngressBytes .Write (writer, " IngressBytes" );
463+ totals.IngressDecompressedBytes .Write (writer, " IngressDecompressedBytes" );
460464 totals.IngressRows .Write (writer, " IngressRows" );
461465 totals.EgressBytes .Write (writer, " EgressBytes" );
462466 totals.EgressRows .Write (writer, " EgressRows" );
@@ -504,6 +508,11 @@ struct TStatsAggregator {
504508 Aggregates[source + " .Bytes" ] += ingress->GetIntegerSafe ();
505509 success = true ;
506510 }
511+ if (auto ingress = node.GetValueByPath (" Ingress.DecompressedBytes.Sum" )) {
512+ auto source = name.substr (prefix.size ());
513+ Aggregates[source + " .DecompressedBytes" ] += ingress->GetIntegerSafe ();
514+ success = true ;
515+ }
507516 if (auto ingress = node.GetValueByPath (" Ingress.Rows.Sum" )) {
508517 auto source = name.substr (prefix.size ());
509518 Aggregates[source + " .Rows" ] += ingress->GetIntegerSafe ();
@@ -519,6 +528,7 @@ struct TStatsAggregator {
519528
520529 THashMap<TString, i64 > Aggregates{std::pair<TString, i64 >
521530 {" IngressBytes" , 0 },
531+ {" IngressDecompressedBytes" , 0 },
522532 {" EgressBytes" , 0 },
523533 {" IngressRows" , 0 },
524534 {" EgressRows" , 0 },
@@ -959,6 +969,7 @@ TString GetPrettyStatistics(const TString& statistics) {
959969 RemapNode (writer, p.second , " TaskRunner.Stage=Total.Tasks" , " Tasks" );
960970 RemapNode (writer, p.second , " TaskRunner.Stage=Total.CpuTimeUs" , " CpuTimeUs" );
961971 RemapNode (writer, p.second , " TaskRunner.Stage=Total.IngressBytes" , " IngressBytes" );
972+ RemapNode (writer, p.second , " TaskRunner.Stage=Total.DecompressedBytes" , " DecompressedBytes" );
962973 RemapNode (writer, p.second , " TaskRunner.Stage=Total.IngressRows" , " IngressRows" );
963974 RemapNode (writer, p.second , " TaskRunner.Stage=Total.InputBytes" , " InputBytes" );
964975 RemapNode (writer, p.second , " TaskRunner.Stage=Total.InputRows" , " InputRows" );
@@ -979,6 +990,7 @@ TString GetPrettyStatistics(const TString& statistics) {
979990 RemapNode (writer, p.second , " Tasks" , " Tasks" );
980991 RemapNode (writer, p.second , " CpuTimeUs" , " CpuTimeUs" );
981992 RemapNode (writer, p.second , " IngressBytes" , " IngressBytes" );
993+ RemapNode (writer, p.second , " IngressDecompressedBytes" , " IngressDecompressedBytes" );
982994 RemapNode (writer, p.second , " IngressRows" , " IngressRows" );
983995 RemapNode (writer, p.second , " InputBytes" , " InputBytes" );
984996 RemapNode (writer, p.second , " InputRows" , " InputRows" );
0 commit comments