DuanWeiFan commented on issue #511: URL: https://github.com/apache/arrow-go/issues/511#issuecomment-3353713135
Hi @zeroshade thanks for getting back to me. I tried to add a test in [file_writer_test.go](https://github.com/apache/arrow-go/blob/main/parquet/pqarrow/file_writer_test.go#L131) trying to log out the `RowGroupTotalCompressedBytes()`. It seems to be always returning zero. It's only after the rowGroup writer is closed, then the RowGroupTotalBytesWritten() returned non-zero value. ``` require.NoError(t, writer.WriteBuffered(record)) t.Log(writer.RowGroupTotalCompressedBytes()) // output: 0 t.Log(writer.RowGroupTotalBytesWritten()) // output: 0 require.NoError(t, writer.Close()) assert.Equal(t, 4, writer.NumRows()) t.Log(writer.RowGroupTotalCompressedBytes()) // output: 0 t.Log(writer.RowGroupTotalBytesWritten()) // output: 188 ``` -- 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]
