Skip to content

Commit e89f61d

Browse files
committed
MINOR: [C++][CSV] apply clang-format to parser.cc
1 parent a96721b commit e89f61d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

cpp/src/arrow/csv/parser.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ class PresizedValueDescWriter : public ValueDescWriter<PresizedValueDescWriter>
204204
// however we allow for one extraneous write in case of excessive columns,
205205
// hence `2 + num_rows * num_cols` (see explanation in PushValue below).
206206
PresizedValueDescWriter(MemoryPool* pool, int32_t num_rows, int32_t num_cols)
207-
: ValueDescWriter(pool, /*values_capacity=*/2 +
208-
static_cast<int64_t>(num_rows) * num_cols) {}
207+
: ValueDescWriter(
208+
pool, /*values_capacity=*/2 + static_cast<int64_t>(num_rows) * num_cols) {}
209209

210210
void PushValue(ParsedValueDesc v) {
211211
DCHECK_LT(values_size_, values_capacity_);
@@ -536,9 +536,8 @@ class BlockParserImpl {
536536
// Use bulk filter only if average value length is >= 10 bytes,
537537
// as the bulk filter has a fixed cost that isn't compensated
538538
// when values are too short.
539-
const int64_t bulk_filter_threshold =
540-
static_cast<int64_t>(batch_.num_cols_) * (batch_.num_rows_ - start_num_rows) *
541-
10;
539+
const int64_t bulk_filter_threshold = static_cast<int64_t>(batch_.num_cols_) *
540+
(batch_.num_rows_ - start_num_rows) * 10;
542541
use_bulk_filter_ = (data - *out_data) > bulk_filter_threshold;
543542
}
544543

0 commit comments

Comments
 (0)