From 306791dfebb75ba3010b3ff59c5e9d2300e3e7ec Mon Sep 17 00:00:00 2001 From: Chang chen Date: Tue, 16 Jul 2024 13:47:41 +0800 Subject: [PATCH] [GLUTEN-6467][CH] Minor Fix Build (#6468) [GLUTEN-6467][CH] Minor Fix Build --- .../AggregateFunctions/AggregateFunctionGroupBloomFilter.h | 5 +++++ cpp-ch/local-engine/Common/CHUtil.h | 1 + cpp-ch/local-engine/Common/GlutenSignalHandler.cpp | 1 + .../ObjectStorages/registerGlutenDiskObjectStorage.cpp | 3 ++- cpp-ch/local-engine/Functions/FunctionsBloomFilter.h | 5 +---- cpp-ch/local-engine/Join/StorageJoinFromReadBuffer.h | 1 + cpp-ch/local-engine/Parser/JoinRelParser.h | 1 + cpp-ch/local-engine/Shuffle/PartitionWriter.h | 5 +++-- cpp-ch/local-engine/Storages/CustomStorageMergeTree.cpp | 4 ++-- cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp | 2 +- .../Storages/SubstraitSource/ExcelTextFormatFile.cpp | 3 +-- .../Storages/SubstraitSource/ExcelTextFormatFile.h | 2 -- .../Storages/SubstraitSource/ReadBufferBuilder.cpp | 1 + .../Storages/SubstraitSource/ReadBufferBuilder.h | 1 + cpp-ch/local-engine/tests/gtest_ch_join.cpp | 6 +----- cpp-ch/local-engine/tests/gtest_clickhouse_54881.cpp | 2 +- cpp-ch/local-engine/tests/gtest_parquet_columnindex.cpp | 1 + cpp-ch/local-engine/tests/gtest_parser.cpp | 3 ++- 18 files changed, 26 insertions(+), 21 deletions(-) diff --git a/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionGroupBloomFilter.h b/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionGroupBloomFilter.h index 6dd15731eea0..fa726d1d62ed 100644 --- a/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionGroupBloomFilter.h +++ b/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionGroupBloomFilter.h @@ -30,6 +30,11 @@ #include #include +namespace DB::ErrorCodes +{ +extern const int BAD_ARGUMENTS; +} + namespace local_engine { using namespace DB; diff --git a/cpp-ch/local-engine/Common/CHUtil.h b/cpp-ch/local-engine/Common/CHUtil.h index 65764af7d148..7be3f86dc230 100644 --- a/cpp-ch/local-engine/Common/CHUtil.h +++ b/cpp-ch/local-engine/Common/CHUtil.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include diff --git a/cpp-ch/local-engine/Common/GlutenSignalHandler.cpp b/cpp-ch/local-engine/Common/GlutenSignalHandler.cpp index d32c640c3d84..d04c67d71b66 100644 --- a/cpp-ch/local-engine/Common/GlutenSignalHandler.cpp +++ b/cpp-ch/local-engine/Common/GlutenSignalHandler.cpp @@ -16,6 +16,7 @@ */ #include #include +#include #include #include #include diff --git a/cpp-ch/local-engine/Disks/ObjectStorages/registerGlutenDiskObjectStorage.cpp b/cpp-ch/local-engine/Disks/ObjectStorages/registerGlutenDiskObjectStorage.cpp index 9e4546498034..7d4d06a1239f 100644 --- a/cpp-ch/local-engine/Disks/ObjectStorages/registerGlutenDiskObjectStorage.cpp +++ b/cpp-ch/local-engine/Disks/ObjectStorages/registerGlutenDiskObjectStorage.cpp @@ -15,11 +15,12 @@ * limitations under the License. */ #include "config.h" +#include #include #if USE_AWS_S3 +#include #include #include -#include #endif #if USE_HDFS diff --git a/cpp-ch/local-engine/Functions/FunctionsBloomFilter.h b/cpp-ch/local-engine/Functions/FunctionsBloomFilter.h index 9fce53414b01..fea2c7f47d4f 100644 --- a/cpp-ch/local-engine/Functions/FunctionsBloomFilter.h +++ b/cpp-ch/local-engine/Functions/FunctionsBloomFilter.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -40,15 +41,11 @@ #include -#include - - namespace DB { namespace ErrorCodes { extern const int ILLEGAL_TYPE_OF_ARGUMENT; -extern const int BAD_ARGUMENTS; } } diff --git a/cpp-ch/local-engine/Join/StorageJoinFromReadBuffer.h b/cpp-ch/local-engine/Join/StorageJoinFromReadBuffer.h index 600210e66869..d9766c4392f4 100644 --- a/cpp-ch/local-engine/Join/StorageJoinFromReadBuffer.h +++ b/cpp-ch/local-engine/Join/StorageJoinFromReadBuffer.h @@ -16,6 +16,7 @@ */ #pragma once #include +#include #include #include diff --git a/cpp-ch/local-engine/Parser/JoinRelParser.h b/cpp-ch/local-engine/Parser/JoinRelParser.h index 15468b54b6f4..e6d31e6d31d6 100644 --- a/cpp-ch/local-engine/Parser/JoinRelParser.h +++ b/cpp-ch/local-engine/Parser/JoinRelParser.h @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/cpp-ch/local-engine/Shuffle/PartitionWriter.h b/cpp-ch/local-engine/Shuffle/PartitionWriter.h index 5b4285afda1f..e2c10b0cbd46 100644 --- a/cpp-ch/local-engine/Shuffle/PartitionWriter.h +++ b/cpp-ch/local-engine/Shuffle/PartitionWriter.h @@ -19,13 +19,14 @@ #include #include #include +#include #include #include +#include +#include #include #include -#include -#include "CachedShuffleWriter.h" namespace DB { diff --git a/cpp-ch/local-engine/Storages/CustomStorageMergeTree.cpp b/cpp-ch/local-engine/Storages/CustomStorageMergeTree.cpp index ec0e0932fc76..3e93edaaab70 100644 --- a/cpp-ch/local-engine/Storages/CustomStorageMergeTree.cpp +++ b/cpp-ch/local-engine/Storages/CustomStorageMergeTree.cpp @@ -16,9 +16,9 @@ */ #include "CustomStorageMergeTree.h" - -#include #include +#include +#include #include namespace DB diff --git a/cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp b/cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp index 57bb804fa9d1..c6a8e03a6ba0 100644 --- a/cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp +++ b/cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp @@ -17,7 +17,7 @@ #include "MetaDataHelper.h" #include - +#include #include #include #include diff --git a/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.cpp b/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.cpp index 31ef5b9e1715..428ef5796888 100644 --- a/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.cpp +++ b/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.cpp @@ -15,8 +15,6 @@ * limitations under the License. */ #include "ExcelTextFormatFile.h" -#include - #include #include @@ -31,6 +29,7 @@ #include #include #include +#include namespace DB { diff --git a/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.h b/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.h index 237a0383c211..4ec69f33b9c4 100644 --- a/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.h +++ b/cpp-ch/local-engine/Storages/SubstraitSource/ExcelTextFormatFile.h @@ -16,8 +16,6 @@ */ #pragma once - -#include #include #include #include diff --git a/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.cpp b/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.cpp index 7cafee8fe526..e73ca8ecee2b 100644 --- a/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.cpp +++ b/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.h b/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.h index b07b810e896a..f5218f0aa5de 100644 --- a/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.h +++ b/cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.h @@ -22,6 +22,7 @@ #include #include #include +#include namespace local_engine { diff --git a/cpp-ch/local-engine/tests/gtest_ch_join.cpp b/cpp-ch/local-engine/tests/gtest_ch_join.cpp index 43bac7a59728..3202fb235a5f 100644 --- a/cpp-ch/local-engine/tests/gtest_ch_join.cpp +++ b/cpp-ch/local-engine/tests/gtest_ch_join.cpp @@ -31,11 +31,11 @@ #include #include +#include #include #include #include - using namespace DB; using namespace local_engine; @@ -95,17 +95,13 @@ TEST(TestJoin, simple) ASTPtr rkey = std::make_shared("colD"); join->addOnKeys(lkey, rkey, false); for (const auto & column : join->columnsFromJoinedTable()) - { join->addJoinedColumn(column); - } auto left_keys = left.getNamesAndTypesList(); join->addJoinedColumnsAndCorrectTypes(left_keys, true); std::cerr << "after join:\n"; for (const auto & key : left_keys) - { std::cerr << key.dump() << std::endl; - } ActionsDAGPtr left_convert_actions = nullptr; ActionsDAGPtr right_convert_actions = nullptr; std::tie(left_convert_actions, right_convert_actions) diff --git a/cpp-ch/local-engine/tests/gtest_clickhouse_54881.cpp b/cpp-ch/local-engine/tests/gtest_clickhouse_54881.cpp index 2628eb0e8c04..69966ef93c0b 100644 --- a/cpp-ch/local-engine/tests/gtest_clickhouse_54881.cpp +++ b/cpp-ch/local-engine/tests/gtest_clickhouse_54881.cpp @@ -16,7 +16,7 @@ */ #include #include - +#include #include #include #include diff --git a/cpp-ch/local-engine/tests/gtest_parquet_columnindex.cpp b/cpp-ch/local-engine/tests/gtest_parquet_columnindex.cpp index bdaa51f974c5..76c0d028a58e 100644 --- a/cpp-ch/local-engine/tests/gtest_parquet_columnindex.cpp +++ b/cpp-ch/local-engine/tests/gtest_parquet_columnindex.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include diff --git a/cpp-ch/local-engine/tests/gtest_parser.cpp b/cpp-ch/local-engine/tests/gtest_parser.cpp index 24c796358f45..aaaa3679ab94 100644 --- a/cpp-ch/local-engine/tests/gtest_parser.cpp +++ b/cpp-ch/local-engine/tests/gtest_parser.cpp @@ -16,6 +16,7 @@ */ #include #include +#include #include #include @@ -138,7 +139,7 @@ TEST(LocalExecutor, StorageFileSink) metadata.setColumns(ColumnsDescription::fromNamesAndTypes({{"name", STRING()}, {"value", UINT()}})); StorageMetadataPtr metadata_ptr = std::make_shared(metadata); -/* + /* auto sink = createFilelinkSink( metadata_ptr, "test_table",