You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2020/06/22 05:33:01 UTC

[incubator-iotdb] branch fix_boolean_batch_serialization created (now e286fc2)

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

jiangtian pushed a change to branch fix_boolean_batch_serialization
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at e286fc2  fix boolean batch serialization

This branch includes the following new commits:

     new e286fc2  fix boolean batch serialization

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.



[incubator-iotdb] 01/01: fix boolean batch serialization

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch fix_boolean_batch_serialization
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit e286fc2e7436ded566446b50615bbd8f187f22f6
Author: jt2594838 <jt...@163.com>
AuthorDate: Mon Jun 22 13:32:48 2020 +0800

    fix boolean batch serialization
---
 .../java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java b/server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java
index 8ee8ce8..7a8745c 100644
--- a/server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java
+++ b/server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java
@@ -24,11 +24,9 @@ import java.nio.ByteBuffer;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
-
 import org.apache.iotdb.db.qp.logical.Operator.OperatorType;
 import org.apache.iotdb.db.qp.physical.PhysicalPlan;
 import org.apache.iotdb.db.utils.QueryDataSetUtils;
-import org.apache.iotdb.db.utils.TestOnly;
 import org.apache.iotdb.tsfile.exception.write.UnSupportedDataTypeException;
 import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
 import org.apache.iotdb.tsfile.read.TimeValuePair;
@@ -305,7 +303,7 @@ public class InsertTabletPlan extends PhysicalPlan {
       case BOOLEAN:
         boolean[] boolValues = (boolean[]) column;
         for (int j = start; j < end; j++) {
-          buffer.putInt(BytesUtils.boolToByte(boolValues[j]));
+          buffer.put(BytesUtils.boolToByte(boolValues[j]));
         }
         break;
       case TEXT: