From 45d6efa5bdc61c861a798f8c5dc64d9a297c226c Mon Sep 17 00:00:00 2001 From: Jia Ke Date: Fri, 15 Nov 2024 20:24:27 +0800 Subject: [PATCH] test --- CMakeLists.txt | 1 - velox/CMakeLists.txt | 4 ---- .../connectors/hive/storage_adapters/hdfs/HdfsFileSystem.cpp | 3 --- velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.cpp | 3 --- velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h | 3 --- velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.cpp | 3 --- velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h | 3 --- 7 files changed, 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e8888cd8e5f..0d87c2a3d75b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,6 @@ option(VELOX_ENABLE_BENCHMARKS_BASIC "Enable Velox basic benchmarks." OFF) option(VELOX_ENABLE_S3 "Build S3 Connector" OFF) option(VELOX_ENABLE_GCS "Build GCS Connector" OFF) option(VELOX_ENABLE_ABFS "Build Abfs Connector" OFF) -option(VELOX_ENABLE_HDFS "Build Hdfs Connector" OFF) option(VELOX_ENABLE_HDFS3 "Build Hdfs3 Connector" OFF) option(VELOX_ENABLE_PARQUET "Enable Parquet support" OFF) option(VELOX_ENABLE_ARROW "Enable Arrow support" OFF) diff --git a/velox/CMakeLists.txt b/velox/CMakeLists.txt index f1694f17bfa6..00c969ccce7b 100644 --- a/velox/CMakeLists.txt +++ b/velox/CMakeLists.txt @@ -24,10 +24,6 @@ add_subdirectory(row) add_subdirectory(flag_definitions) add_subdirectory(external/date) add_subdirectory(external/md5) - -if(${VELOX_ENABLE_HDFS}) - add_subdirectory(external/hdfs) -endif() # # examples depend on expression diff --git a/velox/connectors/hive/storage_adapters/hdfs/HdfsFileSystem.cpp b/velox/connectors/hive/storage_adapters/hdfs/HdfsFileSystem.cpp index ece54c83a6c4..a025ab4a8320 100644 --- a/velox/connectors/hive/storage_adapters/hdfs/HdfsFileSystem.cpp +++ b/velox/connectors/hive/storage_adapters/hdfs/HdfsFileSystem.cpp @@ -18,10 +18,7 @@ #include "velox/common/config/Config.h" #include "velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h" #include "velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h" - -#ifdef VELOX_ENABLE_HDFS3 #include -#endif namespace facebook::velox::filesystems { std::string_view HdfsFileSystem::kScheme("hdfs://"); diff --git a/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.cpp b/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.cpp index 8a6a47c5f24d..894e8e4d0067 100644 --- a/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.cpp +++ b/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.cpp @@ -16,10 +16,7 @@ #include "HdfsReadFile.h" #include - -#ifdef VELOX_ENABLE_HDFS3 #include -#endif namespace facebook::velox { struct HdfsFile { diff --git a/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h b/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h index 393f46affb7e..c510a9f5d02c 100644 --- a/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h +++ b/velox/connectors/hive/storage_adapters/hdfs/HdfsReadFile.h @@ -15,10 +15,7 @@ */ #include "velox/common/file/File.h" - -#ifdef VELOX_ENABLE_HDFS3 #include -#endif namespace facebook::velox { /** diff --git a/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.cpp b/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.cpp index 5b76ba9bce59..84541f6c2f93 100644 --- a/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.cpp +++ b/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.cpp @@ -15,10 +15,7 @@ */ #include "velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h" - -#ifdef VELOX_ENABLE_HDFS3 #include -#endif namespace facebook::velox { HdfsWriteFile::HdfsWriteFile( diff --git a/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h b/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h index 6f206a6bf4a4..d475aed39fa4 100644 --- a/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h +++ b/velox/connectors/hive/storage_adapters/hdfs/HdfsWriteFile.h @@ -16,10 +16,7 @@ #pragma once #include "velox/common/file/File.h" - -#ifdef VELOX_ENABLE_HDFS3 #include -#endif namespace facebook::velox {