Skip to content

Commit

Permalink
Fix writer count error (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Jul 26, 2023
1 parent 6df90c3 commit 10dc26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/format/parquet/file_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Status ParquetFileWriter::Init() {

Status ParquetFileWriter::Write(arrow::RecordBatch* record) {
RETURN_ARROW_NOT_OK(writer_->WriteRecordBatch(*record));
count_ += record->num_columns();
count_ += record->num_rows();
return Status::OK();
}

Expand Down

0 comments on commit 10dc26d

Please sign in to comment.