From ba419e43a6546f9ad9522f2f688270ece821a43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Thu, 11 Jul 2024 22:16:04 +0200 Subject: [PATCH] Style --- src/Storages/MergeTree/MutateTask.cpp | 1 - src/Storages/MergeTree/StorageFromMergeTreeDataPart.h | 6 ------ src/Storages/StorageFromMergeTreeDataPart.cpp | 5 +++++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Storages/MergeTree/MutateTask.cpp b/src/Storages/MergeTree/MutateTask.cpp index 0671dc6fa60..f74cccd518b 100644 --- a/src/Storages/MergeTree/MutateTask.cpp +++ b/src/Storages/MergeTree/MutateTask.cpp @@ -36,7 +36,6 @@ #include - namespace ProfileEvents { extern const Event MutateTaskProjectionsCalculationMicroseconds; diff --git a/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h b/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h index 731c30f4b79..82ebbf09988 100644 --- a/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h +++ b/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h @@ -8,15 +8,9 @@ #include - namespace DB { -namespace ErrorCodes -{ - extern const int LOGICAL_ERROR; -} - class QueryPlan; /// A Storage that allows reading from a single MergeTree data part. diff --git a/src/Storages/StorageFromMergeTreeDataPart.cpp b/src/Storages/StorageFromMergeTreeDataPart.cpp index 37e142d246a..481d9e66901 100644 --- a/src/Storages/StorageFromMergeTreeDataPart.cpp +++ b/src/Storages/StorageFromMergeTreeDataPart.cpp @@ -6,6 +6,11 @@ namespace DB { +namespace ErrorCodes +{ +extern const int LOGICAL_ERROR; +} + bool StorageFromMergeTreeDataPart::materializeTTLRecalculateOnly() const { if (parts.empty())