You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2022/05/30 08:36:13 UTC

[iotdb] branch iotdb-3309 created (now c6c1026284)

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

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


      at c6c1026284 [IOTDB-3229] Field is 0 rather than null when query two series in one Device

This branch includes the following new commits:

     new c6c1026284 [IOTDB-3229] Field is 0 rather than null when query two series in one Device

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [IOTDB-3229] Field is 0 rather than null when query two series in one Device

Posted by ro...@apache.org.
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 <ro...@apache.org>
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);