shizy818 commented on code in PR #14265:
URL: https://github.com/apache/iotdb/pull/14265#discussion_r1867243012
##########
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/read/reader/chunk/MemChunkLoaderTest.java:
##########
@@ -105,20 +108,22 @@ public void testBooleanMemChunkLoader() throws
IOException {
memChunkLoader.close();
}
- private TsBlock buildBooleanTsBlock() {
- TsBlockBuilder builder = new
TsBlockBuilder(Collections.singletonList(TSDataType.BOOLEAN));
- builder.getTimeColumnBuilder().writeLong(1L);
- builder.getColumnBuilder(0).writeBoolean(true);
- builder.declarePosition();
- builder.getTimeColumnBuilder().writeLong(2L);
- builder.getColumnBuilder(0).writeBoolean(false);
- builder.declarePosition();
- return builder.build();
+ private Map<TVList, Integer> buildBooleanTvListMap() {
+ TVList tvList = TVList.newList(TSDataType.BOOLEAN);
+ if (tvList != null) {
+ tvList.putBoolean(1L, true);
+ tvList.putBoolean(2L, true);
+ }
+ Map<TVList, Integer> tvListMap = new LinkedHashMap<>();
+ tvListMap.put(tvList, 2);
+ return tvListMap;
}
Review Comment:
sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]