Skip to content

Commit

Permalink
enable metering by default (ydb-platform#14615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmike authored Feb 18, 2025
1 parent 22bee29 commit 0a1a524
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ydb/core/kqp/executer_actor/kqp_tasks_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ void SerializeTaskToProto(

SerializeCtxToMap(*tasksGraph.GetMeta().UserRequestContext, *result->MutableRequestContext());

result->SetEnableMetering(enableMetering);
result->SetDisableMetering(!enableMetering);
FillTaskMeta(stageInfo, task, *result);
}

Expand Down
1 change: 0 additions & 1 deletion ydb/core/kqp/ut/opt/kqp_ne_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4261,7 +4261,6 @@ Y_UNIT_TEST_SUITE(KqpNewEngine) {
CompareYson(R"([[[1u];[2u]];[[2u];[2u]]])", FormatResultSetYson(result.GetResultSet(0)));
}


Y_UNIT_TEST(FullScanCount) {
TKikimrSettings settings;
NKikimrConfig::TAppConfig appConfig;
Expand Down
2 changes: 1 addition & 1 deletion ydb/library/yql/dq/proto/dq_tasks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@ message TDqTask {
map<string, string> RequestContext = 18;
optional bool EnableSpilling = 19;
optional uint32 ArrayBufferMinFillPercentage = 20;
optional bool EnableMetering = 21;
optional bool DisableMetering = 22;
}
2 changes: 1 addition & 1 deletion ydb/library/yql/dq/runtime/dq_tasks_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class TDqTaskSettings {
}

bool EnableMetering() const {
return Task_->GetEnableMetering();
return !Task_->GetDisableMetering();
}

ui64 GetStageId() const {
Expand Down

0 comments on commit 0a1a524

Please sign in to comment.