Skip to content

remove direct indexes in vectors from debug output #1648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ydb/core/graph/shard/backends.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,11 @@ bool TLocalBackend::DownsampleData(NTabletFlatExecutor::TTransactionContext& txc
}
}
BLOG_TRACE("Normalizing " << values.Timestamps.size() << " values from " << values.Timestamps.front().Seconds()
<< " to " << values.Timestamps.back().Seconds() << " values " << values.Values[0].front() << " .. " << values.Values[0].back());
<< " to " << values.Timestamps.back().Seconds());
NormalizeAndDownsample(values, 1);
}
if (!values.Timestamps.empty()) {
BLOG_TRACE("Result time is " << values.Timestamps.front().Seconds() << " value is " << values.Values.front()[0]);
BLOG_TRACE("Result time is " << values.Timestamps.front().Seconds());
for (ui64 id = 0; id < values.Values.size(); ++id) {
db.Table<Schema::MetricsValues>().Key(values.Timestamps.front().Seconds(), id).Update<Schema::MetricsValues::Value>(values.Values.front()[id]);
}
Expand Down Expand Up @@ -395,11 +395,11 @@ bool TLocalBackend::DownsampleData(NTabletFlatExecutor::TTransactionContext& txc

if (values.Timestamps.size() > 1) {
BLOG_TRACE("Normalizing " << values.Timestamps.size() << " values from " << values.Timestamps.front().Seconds()
<< " to " << values.Timestamps.back().Seconds() << " values " << values.Values[0].front() << " .. " << values.Values[0].back());
<< " to " << values.Timestamps.back().Seconds());
NormalizeAndDownsample(values, 1);
}
if (!values.Timestamps.empty()) {
BLOG_TRACE("Result time is " << values.Timestamps.front().Seconds() << " value is " << values.Values.front()[0]);
BLOG_TRACE("Result time is " << values.Timestamps.front().Seconds());
for (ui64 id = 0; id < values.Values.size(); ++id) {
db.Table<Schema::MetricsValues>().Key(values.Timestamps.front().Seconds(), id).Update<Schema::MetricsValues::Value>(values.Values.front()[id]);
}
Expand Down