Skip to content

Commit

Permalink
ORC-1669: [C++] Deprecate HDFS support
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Mark readHdfsFile as deprecated.

### Why are the changes needed?
Reading ORC on HDFS was introduced in #134 without any test. It has not been updated for 7 years and updating libhdfspp will result in extra dependency like boost library. Staying at an old version of libhdfspp will also prohibit us from updating other libraries like protobuf.

### How was this patch tested?
It does not need test.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #1885 from wgtmac/ORC-1669.

Authored-by: Gang Wu <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
  • Loading branch information
wgtmac authored and dongjoon-hyun committed Apr 13, 2024
1 parent e89ca33 commit cea0629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ option (ANALYZE_JAVA

option (BUILD_LIBHDFSPP
"Include LIBHDFSPP library in the build process"
ON)
OFF)

option(BUILD_CPP_TESTS
"Build the googletest unit tests"
Expand Down
4 changes: 2 additions & 2 deletions c++/include/orc/OrcFile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ namespace orc {
* @param path the uri of the file in HDFS
* @param metrics the metrics of the reader
*/
std::unique_ptr<InputStream> readHdfsFile(const std::string& path,
ReaderMetrics* metrics = nullptr);
[[deprecated("readHdfsFile is deprecated in 2.0.1")]] std::unique_ptr<InputStream> readHdfsFile(
const std::string& path, ReaderMetrics* metrics = nullptr);

/**
* Create a reader to read the ORC file.
Expand Down

0 comments on commit cea0629

Please sign in to comment.