diff options
author | hcpp <hcpp@ydb.tech> | 2022-07-30 00:06:14 +0300 |
---|---|---|
committer | hcpp <hcpp@ydb.tech> | 2022-07-30 00:06:14 +0300 |
commit | fcdd96bf4024968386f441f2208b040ffa00eed2 (patch) | |
tree | b8d8dc726316a029286d45c6b5b78c30e243c4cf | |
parent | c01921d09751e9b57718c9425ed6f2c1094a3d74 (diff) | |
download | ydb-fcdd96bf4024968386f441f2208b040ffa00eed2.tar.gz |
deriv metrics has been fixed
-rw-r--r-- | ydb/library/yql/providers/dq/actors/task_controller.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ydb/library/yql/providers/dq/actors/task_controller.cpp b/ydb/library/yql/providers/dq/actors/task_controller.cpp index 294d94920ab..a49b882d227 100644 --- a/ydb/library/yql/providers/dq/actors/task_controller.cpp +++ b/ydb/library/yql/providers/dq/actors/task_controller.cpp @@ -254,7 +254,12 @@ private: } if (publicCounterName) { - *ServiceCounters.PublicCounters->GetNamedCounter("name", publicCounterName, isDeriv) = v.Count; + auto& counter = *ServiceCounters.PublicCounters->GetNamedCounter("name", publicCounterName, isDeriv); + if (isDeriv) { + counter += v.Count; + } else { + counter = v.Count; + } } } } |