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

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


The following commit(s) were added to refs/heads/develop by this push:
     new dfc44338 Fix TsBlock Constructor
dfc44338 is described below

commit dfc4433841d99421bc7a36adbf888e01f288602d
Author: Jackie Tien <[email protected]>
AuthorDate: Wed Oct 16 15:32:10 2024 +0800

    Fix TsBlock Constructor
---
 .../src/main/java/org/apache/tsfile/read/common/block/TsBlock.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/TsBlock.java 
b/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/TsBlock.java
index 1cbd10ed..5f5edc6b 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/TsBlock.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/TsBlock.java
@@ -74,7 +74,7 @@ public class TsBlock {
   }
 
   public TsBlock(Column timeColumn, Column... valueColumns) {
-    this(true, determinePositionCount(valueColumns), timeColumn, valueColumns);
+    this(true, determinePositionCount(timeColumn), timeColumn, valueColumns);
   }
 
   public TsBlock(int positionCount, Column timeColumn, Column... valueColumns) 
{

Reply via email to