Skip to content

Commit

Permalink
if print_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vuule committed Sep 7, 2023
1 parent c9d8821 commit 75c4fa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/tests/io/parquet_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
#include <random>
#include <type_traits>

// Set this to true to enable printing, for debugging.
auto constexpr print_enabled = false;

template <typename T, typename SourceElementT = T>
using column_wrapper =
typename std::conditional<std::is_same_v<T, cudf::string_view>,
Expand Down Expand Up @@ -6534,7 +6537,7 @@ TEST_F(ParquetReaderTest, FilterFloatNAN)
auto col0 = cudf::test::fixed_width_column_wrapper<float>(elements, elements + num_rows);
auto col1 = cudf::test::fixed_width_column_wrapper<double>(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");
{
Expand Down

0 comments on commit 75c4fa0

Please sign in to comment.