Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deprecation warnings for json legacy reader (rapidsai#15563)
Fixes deprecation warnings caused by changes in rapidsai#15558 Most are in the `json_test.cpp` and appear like this ``` [150+7+50=206] Building CXX object tests/CMakeFiles/JSON_TEST.dir/io/json_test.cpp.o /cudf/cpp/tests/io/json_test.cpp: In member function 'virtual void JsonReaderParamTest_BasicJsonLines_Test::TestBody()': /cudf/cpp/tests/io/json_test.cpp:320:14: warning: 'cudf::io::json_reader_options_builder& cudf::io::json_reader_options_builder::legacy(bool)' is deprecated [-Wdeprecated-declarations] 317 | cudf::io::json_reader_options::builder(cudf::io::source_info{data.data(), data.size()}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 318 | .dtypes(std::vector<data_type>{dtype<int32_t>(), dtype<double>()}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 319 | .lines(true) | ~~~~~~~~~~~~ 320 | .legacy(is_legacy_test(test_opt)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /cudf/cpp/tests/io/json_test.cpp:30: ``` Compiler warnings usually result in errors when building libcudf. This PR removes calls and references to legacy JSON reader features where possible. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Bradley Dice (https://github.com/bdice) - Nghia Truong (https://github.com/ttnghia) URL: rapidsai#15563
- Loading branch information