diff --git a/cpp/tests/io/orc_chunked_reader_test.cu b/cpp/tests/io/orc_chunked_reader_test.cu index bde5e10b521..3c582c8c80c 100644 --- a/cpp/tests/io/orc_chunked_reader_test.cu +++ b/cpp/tests/io/orc_chunked_reader_test.cu @@ -130,13 +130,6 @@ auto chunked_read(std::string const& filepath, } ++num_chunks; - if (chunk.tbl->num_columns() == 3) { - auto col2 = chunk.tbl->get_column(2).view(); - auto slice = cudf::slice(col2, {0, 5})[0]; - printf("\ncol2, chunk %d: \n", num_chunks); - cudf::test::print(slice); - } - out_tables.emplace_back(std::move(chunk.tbl)); } while (reader.has_next()); @@ -144,6 +137,13 @@ auto chunked_read(std::string const& filepath, CUDF_EXPECTS(out_tables.front()->num_rows() != 0, "Number of rows in the new chunk is zero."); } + if (out_tables.front()->num_columns() == 3) { + auto col2 = out_tables.front()->get_column(2).view(); + auto slice = cudf::slice(col2, {0, 5})[0]; + printf("\ncol2, chunk %d: \n", num_chunks); + cudf::test::print(slice); + } + auto out_tviews = std::vector{}; for (auto const& tbl : out_tables) { out_tviews.emplace_back(tbl->view());