rdblue commented on code in PR #5778:
URL: https://github.com/apache/iceberg/pull/5778#discussion_r980513784
##########
orc/src/main/java/org/apache/iceberg/orc/OrcFileAppender.java:
##########
@@ -147,11 +146,12 @@ public long length() {
@Override
public List<Long> splitOffsets() {
Preconditions.checkState(isClosed, "File is not yet closed");
- try (Reader reader = ORC.newFileReader(file.toInputFile(), conf)) {
- List<StripeInformation> stripes = reader.getStripes();
+ try {
+ List<StripeInformation> stripes = writer.getStripes();
Review Comment:
This change looks great to me. Thanks for updating this, @pavibhai!
--
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]