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 2022/03/14 07:14:11 UTC

[iotdb] branch IOTDB2735 created (now 4bd6d7f)

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

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


      at 4bd6d7f  [IOTDB-2735] Remove the redundant code in Tablet

This branch includes the following new commits:

     new 4bd6d7f  [IOTDB-2735] Remove the redundant code in Tablet

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-2735] Remove the redundant code in Tablet

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

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

commit 4bd6d7f2abe5e32a564e4c6532c3f069d40088ec
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Mar 14 15:13:18 2022 +0800

    [IOTDB-2735] Remove the redundant code in Tablet
---
 .../main/java/org/apache/iotdb/tsfile/write/record/Tablet.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/record/Tablet.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/record/Tablet.java
index 5b7d0b8..9cfabc1 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/record/Tablet.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/record/Tablet.java
@@ -93,13 +93,7 @@ public class Tablet {
 
     int indexInSchema = 0;
     for (MeasurementSchema schema : schemas) {
-      if (schema.getType() == TSDataType.VECTOR) {
-        for (String measurementId : schema.getSubMeasurementsList()) {
-          measurementIndex.put(measurementId, indexInSchema);
-        }
-      } else {
-        measurementIndex.put(schema.getMeasurementId(), indexInSchema);
-      }
+      measurementIndex.put(schema.getMeasurementId(), indexInSchema);
       indexInSchema++;
     }