From 75c4fa02467a92ff704da6bbcad7af05a52a8d68 Mon Sep 17 00:00:00 2001 From: Vukasin Milovanovic Date: Thu, 7 Sep 2023 16:54:09 -0700 Subject: [PATCH 1/2] if print_enabled --- cpp/tests/io/parquet_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/tests/io/parquet_test.cpp b/cpp/tests/io/parquet_test.cpp index 3cd5c9f5593..c85a0ff91a5 100644 --- a/cpp/tests/io/parquet_test.cpp +++ b/cpp/tests/io/parquet_test.cpp @@ -52,6 +52,9 @@ #include #include +// Set this to true to enable printing, for debugging. +auto constexpr print_enabled = false; + template using column_wrapper = typename std::conditional, @@ -6534,7 +6537,7 @@ TEST_F(ParquetReaderTest, FilterFloatNAN) auto col0 = cudf::test::fixed_width_column_wrapper(elements, elements + num_rows); auto col1 = cudf::test::fixed_width_column_wrapper(elements, elements + num_rows); - cudf::test::print(col0); + if constexpr (print_enabled) { cudf::test::print(col0); } auto const written_table = table_view{{col0, col1}}; auto const filepath = temp_env->get_temp_filepath("FilterFloatNAN.parquet"); { From 9a6037bed5962d2715780c83bbff54a2b2928884 Mon Sep 17 00:00:00 2001 From: Vukasin Milovanovic Date: Mon, 11 Sep 2023 09:53:13 -0700 Subject: [PATCH 2/2] remove --- cpp/tests/io/parquet_test.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cpp/tests/io/parquet_test.cpp b/cpp/tests/io/parquet_test.cpp index c85a0ff91a5..64aca091686 100644 --- a/cpp/tests/io/parquet_test.cpp +++ b/cpp/tests/io/parquet_test.cpp @@ -52,9 +52,6 @@ #include #include -// Set this to true to enable printing, for debugging. -auto constexpr print_enabled = false; - template using column_wrapper = typename std::conditional, @@ -6537,7 +6534,6 @@ TEST_F(ParquetReaderTest, FilterFloatNAN) auto col0 = cudf::test::fixed_width_column_wrapper(elements, elements + num_rows); auto col1 = cudf::test::fixed_width_column_wrapper(elements, elements + num_rows); - if constexpr (print_enabled) { cudf::test::print(col0); } auto const written_table = table_view{{col0, col1}}; auto const filepath = temp_env->get_temp_filepath("FilterFloatNAN.parquet"); {