Skip to content

Commit

Permalink
ORC: OrcFileAppender#length should return file size on disk (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
shardulm94 authored Nov 1, 2020
1 parent 0353f7d commit ab46737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public Metrics metrics() {
public long length() {
Preconditions.checkState(isClosed,
"Cannot return length while appending to an open file.");
return writer.getRawDataSize();
return file.toInputFile().getLength();
}

@Override
Expand Down

0 comments on commit ab46737

Please sign in to comment.