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

rong pushed a commit to branch iotdb-3309
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c6c10262847e15c81ee06b489fbff40bf7ea85c9
Author: Steve Yurong Su <[email protected]>
AuthorDate: Mon May 30 16:34:12 2022 +0800

    [IOTDB-3229] Field is 0 rather than null when query two series in one Device
---
 .../main/java/org/apache/iotdb/tsfile/read/common/block/TsBlock.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/block/TsBlock.java 
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/block/TsBlock.java
index 18e61c2ea3..7e4d836bcd 100644
--- 
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/block/TsBlock.java
+++ 
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/block/TsBlock.java
@@ -347,7 +347,8 @@ public class TsBlock {
       int columnCount = getValueColumnCount();
       Object[] row = new Object[columnCount + 1];
       for (int i = 0; i < columnCount; ++i) {
-        row[i] = valueColumns[i].getObject(rowIndex);
+        final Column column = valueColumns[i];
+        row[i] = column.isNull(rowIndex) ? null : column.getObject(rowIndex);
       }
       row[columnCount] = timeColumn.getObject(rowIndex);
 

Reply via email to