diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-22 21:10:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-22 21:10:33 +0300 |
commit | a9a2f9257eae40935e03ca4185d5263bcb7ba45f (patch) | |
tree | f12875873819442e10ab04bd15fd975bf4bb7b64 /app/workers | |
parent | 917d93d86da4dffd96abcfcf3aa83b0d6fa45286 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/click_house/event_paths_consistency_cron_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/click_house/event_paths_consistency_cron_worker.rb b/app/workers/click_house/event_paths_consistency_cron_worker.rb index 71a1fb0995f..e115aa6b7e9 100644 --- a/app/workers/click_house/event_paths_consistency_cron_worker.rb +++ b/app/workers/click_house/event_paths_consistency_cron_worker.rb @@ -83,13 +83,13 @@ module ClickHouse paths = id_paths.map(&:second).map { |value| "'#{value}'" }.join(',') query = ClickHouse::Client::Query.new( - raw_query: "DELETE FROM events WHERE path IN (#{paths})" + raw_query: "ALTER TABLE events DELETE WHERE path IN (#{paths})" ) connection.execute(query) query = ClickHouse::Client::Query.new( - raw_query: 'DELETE FROM event_namespace_paths WHERE namespace_id IN ({namespace_ids:Array(UInt64)})', + raw_query: 'ALTER TABLE event_namespace_paths DELETE WHERE namespace_id IN ({namespace_ids:Array(UInt64)})', placeholders: { namespace_ids: id_paths.map(&:first).to_json } ) |