This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch tsFile_v4
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/tsFile_v4 by this push:
new 85edbe2f check schema first in writeTable
85edbe2f is described below
commit 85edbe2f97882a5aebbaf657c63d2a5fafaf34d0
Author: jt2594838 <[email protected]>
AuthorDate: Thu Apr 11 10:28:24 2024 +0800
check schema first in writeTable
---
tsfile/src/main/java/org/apache/tsfile/write/TsFileWriter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tsfile/src/main/java/org/apache/tsfile/write/TsFileWriter.java
b/tsfile/src/main/java/org/apache/tsfile/write/TsFileWriter.java
index 5aacadfe..727089ff 100644
--- a/tsfile/src/main/java/org/apache/tsfile/write/TsFileWriter.java
+++ b/tsfile/src/main/java/org/apache/tsfile/write/TsFileWriter.java
@@ -678,10 +678,10 @@ public class TsFileWriter implements AutoCloseable {
}
public boolean writeTable(Tablet tablet) throws IOException,
WriteProcessException {
+ // make sure the ChunkGroupWriter for this Tablet exist and there is no
type conflict
+ checkIsTableExist(tablet);
// spilt the tablet by deviceId
final List<Pair<IDeviceID, Integer>> deviceIdEndIndexPairs =
WriteUtils.splitTabletByDevice(tablet);
- // make sure the ChunkGroupWriter for this Tablet exist
- checkIsTableExist(tablet);
int startIndex = 0;
for (Pair<IDeviceID, Integer> pair : deviceIdEndIndexPairs) {