Skip to content

Commit

Permalink
default mr usage; test header cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shrshi committed Nov 14, 2023
1 parent 656a5b6 commit 08ac4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cpp/src/io/csv/writer_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ struct column_to_strings_fn {
std::enable_if_t<std::is_same_v<column_type, bool>, std::unique_ptr<column>> operator()(
column_view const& column) const
{
string_scalar true_string{options_.get_true_value(), true, stream_, mr_};
string_scalar false_string{options_.get_false_value(), true, stream_, mr_};
string_scalar true_string{options_.get_true_value(), true, stream_};
string_scalar false_string{options_.get_false_value(), true, stream_};
return cudf::strings::detail::from_booleans(column, true_string, false_string, stream_, mr_);
}

Expand All @@ -182,7 +182,7 @@ struct column_to_strings_fn {
}

// handle special characters: {delimiter, '\n', "} in row:
string_scalar delimiter{std::string{options_.get_inter_column_delimiter()}, true, stream_, mr_};
string_scalar delimiter{std::string{options_.get_inter_column_delimiter()}, true, stream_};

auto d_column = column_device_view::create(column_v, stream_);
escape_strings_fn fn{*d_column, delimiter.value(stream_)};
Expand Down
2 changes: 0 additions & 2 deletions cpp/tests/streams/io/csv_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include <cudf_test/default_stream.hpp>
#include <cudf_test/iterator_utilities.hpp>

#include <random>
#include <sstream>
#include <string>
#include <vector>

Expand Down

0 comments on commit 08ac4a2

Please sign in to comment.