diff --git a/src/Storages/Hive/HiveFile.cpp b/src/Storages/Hive/HiveFile.cpp index 896c464c80f..e18eef58947 100644 --- a/src/Storages/Hive/HiveFile.cpp +++ b/src/Storages/Hive/HiveFile.cpp @@ -3,12 +3,10 @@ #if USE_HIVE #include -#include #include #include #include #include -#include #include #include #include @@ -19,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/src/Storages/Hive/HiveFile.h b/src/Storages/Hive/HiveFile.h index dfecd79f932..7d38efe6acb 100644 --- a/src/Storages/Hive/HiveFile.h +++ b/src/Storages/Hive/HiveFile.h @@ -7,11 +7,14 @@ #include #include +#include +#include #include #include #include #include +#include namespace orc { @@ -19,16 +22,6 @@ class Statistics; class ColumnStatistics; } -namespace parquet::arrow -{ -class FileReader; -} - -namespace arrow::adapters::orc -{ -class ORCFileReader; -} - namespace DB { namespace ErrorCodes @@ -36,7 +29,6 @@ namespace ErrorCodes extern const int NOT_IMPLEMENTED; } -class ReadBufferFromHDFS; class IHiveFile : public WithContext { public: diff --git a/src/TableFunctions/CMakeLists.txt b/src/TableFunctions/CMakeLists.txt index c9948a4b131..1d6eb9eb02e 100644 --- a/src/TableFunctions/CMakeLists.txt +++ b/src/TableFunctions/CMakeLists.txt @@ -8,10 +8,9 @@ list(REMOVE_ITEM clickhouse_table_functions_sources ITableFunction.cpp TableFunc list(REMOVE_ITEM clickhouse_table_functions_headers ITableFunction.h TableFunctionFactory.h) add_library(clickhouse_table_functions ${clickhouse_table_functions_sources}) +target_link_libraries(clickhouse_table_functions PRIVATE clickhouse_parsers clickhouse_storages_system dbms) if (TARGET ch_contrib::hivemetastore) - target_link_libraries(clickhouse_table_functions PRIVATE clickhouse_parsers clickhouse_storages_system dbms ch_contrib::hivemetastore ch_contrib::hdfs) -else () - target_link_libraries(clickhouse_table_functions PRIVATE clickhouse_parsers clickhouse_storages_system dbms) + target_link_libraries(clickhouse_table_functions PRIVATE ch_contrib::hivemetastore ch_contrib::hdfs ch_contrib::parquet) endif ()