This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch new_vector
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/new_vector by this push:
new 0ed3bb9 fix PrimitiveMemTableTest
0ed3bb9 is described below
commit 0ed3bb9c8d78e0d8a6ef72b7d7b2c41e524d6879
Author: HTHou <[email protected]>
AuthorDate: Thu Nov 11 13:45:07 2021 +0800
fix PrimitiveMemTableTest
---
.../org/apache/iotdb/db/engine/memtable/PrimitiveMemTableTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/server/src/test/java/org/apache/iotdb/db/engine/memtable/PrimitiveMemTableTest.java
b/server/src/test/java/org/apache/iotdb/db/engine/memtable/PrimitiveMemTableTest.java
index 3b45f08..a1c925f 100644
---
a/server/src/test/java/org/apache/iotdb/db/engine/memtable/PrimitiveMemTableTest.java
+++
b/server/src/test/java/org/apache/iotdb/db/engine/memtable/PrimitiveMemTableTest.java
@@ -209,7 +209,7 @@ public class PrimitiveMemTableTest {
private void writeVector(IMemTable memTable)
throws IOException, QueryProcessException, MetadataException {
- memTable.write(genInsertTablePlan(), 0, 100);
+ memTable.writeAlignedTablet(genInsertTablePlan(), 0, 100);
AlignedPath fullPath =
new AlignedPath(
@@ -227,7 +227,7 @@ public class PrimitiveMemTableTest {
tvPair.hasNextTimeValuePair();
TimeValuePair next = tvPair.nextTimeValuePair();
Assert.assertEquals(i, next.getTimestamp());
- Assert.assertEquals(i, next.getValue().getLong());
+ Assert.assertEquals(i, next.getValue().getVector()[0].getLong());
}
fullPath =
@@ -343,7 +343,7 @@ public class PrimitiveMemTableTest {
encodings[0] = TSEncoding.PLAIN;
encodings[1] = TSEncoding.GORILLA;
- String deviceId = "root.sg.vectorDevice5";
+ String deviceId = "root.sg.device5";
IMeasurementMNode[] mNodes = new IMeasurementMNode[2];
IMeasurementSchema schema0 =