Caideyipi commented on code in PR #17770:
URL: https://github.com/apache/iotdb/pull/17770#discussion_r3303308084


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java:
##########
@@ -304,8 +308,9 @@ private Tablet getNextTablet() {
       Tablet tablet = null;
 
       if (!data.hasCurrent()) {
-        tablet = new Tablet(currentDevice.toString(), currentMeasurements, 1);
-        tablet.initBitMaps();
+        tablet = new Tablet(currentDeviceString, currentMeasurements, 1);
+        PipeTabletUtils.initEmptyBitMaps(tablet);
+        PipeTabletUtils.compactBitMaps(tablet);
         return tablet;

Review Comment:
   Removed this redundant empty-bitmap initialization in 4879c3a. Empty tablets 
now keep bitMaps == null; a bitmap shell is only created lazily when 
markNullValue actually records a null.



-- 
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]

Reply via email to