You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ha...@apache.org on 2025/02/06 08:08:40 UTC

(tsfile) 01/01: Fix TsFile example compile issue

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_example_compile
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit fb5926026f019c752d03cf3a9b7aaafcc61b0e01
Author: HTHou <ha...@apache.org>
AuthorDate: Thu Feb 6 16:08:24 2025 +0800

    Fix TsFile example compile issue
---
 java/examples/pom.xml                                                   | 1 -
 .../src/main/java/org/apache/tsfile/TsFileWriteAlignedWithTablet.java   | 2 --
 2 files changed, 3 deletions(-)

diff --git a/java/examples/pom.xml b/java/examples/pom.xml
index e71ecf6d1..5a484cfc1 100644
--- a/java/examples/pom.xml
+++ b/java/examples/pom.xml
@@ -27,7 +27,6 @@
         <version>2.1.0-SNAPSHOT</version>
     </parent>
     <artifactId>examples</artifactId>
-    <packaging>pom</packaging>
     <name>TsFile: Java: Examples</name>
     <dependencies>
         <dependency>
diff --git a/java/examples/src/main/java/org/apache/tsfile/TsFileWriteAlignedWithTablet.java b/java/examples/src/main/java/org/apache/tsfile/TsFileWriteAlignedWithTablet.java
index ca13fdb36..db48be5d9 100644
--- a/java/examples/src/main/java/org/apache/tsfile/TsFileWriteAlignedWithTablet.java
+++ b/java/examples/src/main/java/org/apache/tsfile/TsFileWriteAlignedWithTablet.java
@@ -95,8 +95,6 @@ public class TsFileWriteAlignedWithTablet {
       long startValue)
       throws IOException, WriteProcessException {
     Tablet tablet = new Tablet(deviceId, schemas);
-    long[] timestamps = tablet.timestamps;
-    Object[] values = tablet.values;
     long sensorNum = schemas.size();
 
     for (long r = 0; r < rowNum; r++, startValue++) {