tschaub commented on code in PR #38507:
URL: https://github.com/apache/arrow/pull/38507#discussion_r1391833637
##########
go/parquet/pqarrow/file_writer.go:
##########
@@ -134,6 +134,15 @@ func (fw *FileWriter) RowGroupTotalBytesWritten() int64 {
return 0
}
+// RowGroupNumRows returns the number of rows written to the current row group.
+// Returns an error if they are unequal between columns that have been written
so far.
+func (fw *FileWriter) RowGroupNumRows() (int, error) {
+ if fw.rgw != nil {
+ return fw.rgw.NumRows()
+ }
+ return 0, nil
+}
+
Review Comment:
@zeroshade - I've rebased this after #38517, so think it is ready for review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]