This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 3bf178f18 [hotfix] Remove length in SingleFileWriter
3bf178f18 is described below
commit 3bf178f189d55133367bb6706add4d323d0b1004
Author: JingsongLi <[email protected]>
AuthorDate: Wed Jul 5 20:51:19 2023 +0800
[hotfix] Remove length in SingleFileWriter
---
paimon-core/src/main/java/org/apache/paimon/io/SingleFileWriter.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/io/SingleFileWriter.java
b/paimon-core/src/main/java/org/apache/paimon/io/SingleFileWriter.java
index 06985026c..c2cfc7643 100644
--- a/paimon-core/src/main/java/org/apache/paimon/io/SingleFileWriter.java
+++ b/paimon-core/src/main/java/org/apache/paimon/io/SingleFileWriter.java
@@ -52,7 +52,6 @@ public abstract class SingleFileWriter<T, R> implements
FileWriter<T, R> {
private PositionOutputStream out;
private long recordCount;
- private long length;
protected boolean closed;
public SingleFileWriter(
@@ -79,7 +78,6 @@ public abstract class SingleFileWriter<T, R> implements
FileWriter<T, R> {
}
this.recordCount = 0;
- this.length = 0;
this.closed = false;
}
@@ -147,7 +145,6 @@ public abstract class SingleFileWriter<T, R> implements
FileWriter<T, R> {
writer.finish();
out.flush();
- length = out.getPos();
out.close();
} catch (IOException e) {
LOG.warn("Exception occurs when closing file " + path + ".
Cleaning up.", e);