From 75c4fa02467a92ff704da6bbcad7af05a52a8d68 Mon Sep 17 00:00:00 2001 From: Vukasin Milovanovic Date: Thu, 7 Sep 2023 16:54:09 -0700 Subject: [PATCH] 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"); {