This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new c3e49a8 [IOTDB-2735] Remove the redundant code in Tablet (#5211)
c3e49a8 is described below
commit c3e49a82c4812aa1fbb8cdc5a5ea3129e5201f5c
Author: Haonan <[email protected]>
AuthorDate: Mon Mar 14 16:19:17 2022 +0800
[IOTDB-2735] Remove the redundant code in Tablet (#5211)
---
.../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++;
}