Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: MithunR <[email protected]>
  • Loading branch information
vuule and mythrocks authored Sep 24, 2024
1 parent 96c8b64 commit 4e19252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/io/csv/reader_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ std::pair<rmm::device_uvector<char>, selected_rows_offsets> load_data_and_gather

auto const data_size = data.has_value() ? data->size() : source->size();
auto const buffer_size = std::min(max_chunk_bytes, data_size);
auto const max_input_size = [&]() {
auto const max_input_size = [&] {
if (range_end == data_size) {
return data_size - byte_range_offset;
} else {
Expand All @@ -253,7 +253,7 @@ std::pair<rmm::device_uvector<char>, selected_rows_offsets> load_data_and_gather
range_end += (range_end < data_size);

auto pos = range_begin;
// When using byta range, need the line terminator of last line before the range
// When using byte range, need the line terminator of last line before the range
auto input_pos = byte_range_offset == 0 ? pos : pos - 1;
uint64_t ctx = 0;

Expand Down

0 comments on commit 4e19252

Please sign in to comment.