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

jiangtian 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 ee5fffc2 Add an instance of validation. (#707)
ee5fffc2 is described below

commit ee5fffc2c183923a48ae47a185811211bbd229b7
Author: libo <[email protected]>
AuthorDate: Thu Jan 15 11:13:44 2026 +0800

    Add an instance of validation. (#707)
    
    * Add an instance of validation.
    
    * Add a comment.
---
 .../org/apache/tsfile/read/common/block/column/TsBlockSerde.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/TsBlockSerde.java
 
b/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/TsBlockSerde.java
index 818ac3c2..c8d4b035 100644
--- 
a/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/TsBlockSerde.java
+++ 
b/java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/TsBlockSerde.java
@@ -103,7 +103,10 @@ public class TsBlockSerde {
 
     // Value column data types.
     for (int i = 0; i < tsBlock.getValueColumnCount(); i++) {
-      if (tsBlock.getColumn(i).getDataType() == TSDataType.DATE) {
+      // To be compatible with the Python client, because it does not support 
data type values other
+      // than 0-5, the value of DATE is 9.
+      if ((tsBlock.getColumn(i) instanceof IntColumn)
+          && tsBlock.getColumn(i).getDataType() == TSDataType.DATE) {
         ((IntColumn) tsBlock.getColumn(i)).modifyDataType(TSDataType.INT32);
       }
       tsBlock.getColumn(i).getDataType().serializeTo(dataOutputStream);

Reply via email to