From 5257f347b0b7360ce37736c85fc187deb18cf4d5 Mon Sep 17 00:00:00 2001 From: Vukasin Milovanovic Date: Thu, 27 Jan 2022 22:47:25 -0800 Subject: [PATCH] Deprecate `decimal_cols_as_float` in ORC reader (C++ layer) (#10152) Issue #10129 Authors: - Vukasin Milovanovic (https://github.com/vuule) Approvers: - Nghia Truong (https://github.com/ttnghia) - Vyas Ramasubramani (https://github.com/vyasr) URL: https://github.com/rapidsai/cudf/pull/10152 --- cpp/include/cudf/io/orc.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cpp/include/cudf/io/orc.hpp b/cpp/include/cudf/io/orc.hpp index 29fc36ce121..c2187f056cf 100644 --- a/cpp/include/cudf/io/orc.hpp +++ b/cpp/include/cudf/io/orc.hpp @@ -220,7 +220,9 @@ class orc_reader_options { * * @param val Vector of fully qualified column names. */ - void set_decimal_cols_as_float(std::vector val) + [[deprecated( + "Decimal to float conversion is deprecated and will be remove in future release")]] void + set_decimal_cols_as_float(std::vector val) { _decimal_cols_as_float = std::move(val); } @@ -344,7 +346,10 @@ class orc_reader_options_builder { * @param val Vector of column names. * @return this for chaining. */ - orc_reader_options_builder& decimal_cols_as_float(std::vector val) + [[deprecated( + "Decimal to float conversion is deprecated and will be remove in future " + "release")]] orc_reader_options_builder& + decimal_cols_as_float(std::vector val) { options._decimal_cols_as_float = std::move(val); return *this;