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:12 UTC

[iotdb] 01/01: [IOTDB-2735] Remove the redundant code in Tablet

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++;
     }