HuaHuaY commented on code in PR #708:
URL: https://github.com/apache/iceberg-cpp/pull/708#discussion_r3458144818
##########
src/iceberg/puffin/puffin_writer.cc:
##########
@@ -152,10 +152,10 @@ Status PuffinWriter::Finish() {
ICEBERG_ASSIGN_OR_RAISE(auto end_pos, stream_->Position());
footer_size_ = end_pos - footer_start;
+ file_size_ = end_pos;
footer_written_ = true;
ICEBERG_RETURN_UNEXPECTED(stream_->Flush());
ICEBERG_RETURN_UNEXPECTED(stream_->Close());
- ICEBERG_ASSIGN_OR_RAISE(file_size_, stream_->Position());
Review Comment:
Revert this and it's fixed in PR
https://github.com/apache/iceberg-cpp/pull/773 that `Position` can't be called
after `Close` in some kinds of stream.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]