Skip to content

Commit

Permalink
last top sort has been removed (ydb-platform#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorooleg authored Mar 25, 2024
1 parent 84cf415 commit 7c5a9d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ void TYdbControlPlaneStorageActor::Handle(TEvControlPlaneStorage::TEvModifyQuery
"$to_delete = (\n"
"SELECT * FROM `" JOBS_TABLE_NAME "`\n"
"WHERE `" SCOPE_COLUMN_NAME "` = $scope AND `" QUERY_ID_COLUMN_NAME "` = $query_id\n"
"ORDER BY `" JOB_ID_COLUMN_NAME "`\n"
"ORDER BY `" SCOPE_COLUMN_NAME "`, `" QUERY_ID_COLUMN_NAME "`, `" JOB_ID_COLUMN_NAME "`\n"
"LIMIT $max_count_jobs, 1\n"
");\n"
);
Expand Down

0 comments on commit 7c5a9d4

Please sign in to comment.