You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/03/18 09:57:41 UTC

[iotdb] 01/01: init

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

haonan pushed a commit to branch InsertRowVector
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit ea2b9f715c70dc171f6edfc8722e0179f070ba44
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Mar 18 17:57:05 2021 +0800

    init
---
 .../apache/iotdb/db/utils/datastructure/VectorTVList.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/utils/datastructure/VectorTVList.java b/server/src/main/java/org/apache/iotdb/db/utils/datastructure/VectorTVList.java
index 09f72c1..9ea3674 100644
--- a/server/src/main/java/org/apache/iotdb/db/utils/datastructure/VectorTVList.java
+++ b/server/src/main/java/org/apache/iotdb/db/utils/datastructure/VectorTVList.java
@@ -64,22 +64,22 @@ public class VectorTVList extends TVList {
       List<Object> columnValues = values.get(i);
       switch (dataTypes.get(i)) {
         case TEXT:
-          ((Binary[]) columnValues.get(arrayIndex))[elementIndex] = ((Binary[]) columnValue)[0];
+          ((Binary[]) columnValues.get(arrayIndex))[elementIndex] = (Binary) columnValue;
           break;
         case FLOAT:
-          ((float[]) columnValues.get(arrayIndex))[elementIndex] = ((float[]) columnValue)[0];
+          ((float[]) columnValues.get(arrayIndex))[elementIndex] = (float) columnValue;
           break;
         case INT32:
-          ((int[]) columnValues.get(arrayIndex))[elementIndex] = ((int[]) columnValue)[0];
+          ((int[]) columnValues.get(arrayIndex))[elementIndex] = (int) columnValue;
           break;
         case INT64:
-          ((long[]) columnValues.get(arrayIndex))[elementIndex] = ((long[]) columnValue)[0];
+          ((long[]) columnValues.get(arrayIndex))[elementIndex] = (long) columnValue;
           break;
         case DOUBLE:
-          ((double[]) columnValues.get(arrayIndex))[elementIndex] = ((double[]) columnValue)[0];
+          ((double[]) columnValues.get(arrayIndex))[elementIndex] = (double) columnValue;
           break;
         case BOOLEAN:
-          ((boolean[]) columnValues.get(arrayIndex))[elementIndex] = ((boolean[]) columnValue)[0];
+          ((boolean[]) columnValues.get(arrayIndex))[elementIndex] = (boolean) columnValue;
           break;
         default:
           break;