From 882a7e2c665868fafb9d7b22f37ec3a4a5d4b035 Mon Sep 17 00:00:00 2001 From: Caideyipi <87789683+Caideyipi@users.noreply.github.com> Date: Fri, 31 Jul 2026 16:39:52 +0800 Subject: [PATCH] [Fix] Address TsFile scan parser Sonar issues --- .../tsfile/parser/scan/TsFileInsertionEventScanParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java index 79abbd65fae6..bb783e70a05a 100644 --- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java +++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java @@ -477,6 +477,7 @@ private void resizePageDataMemoryIfNeeded(final long estimatedMemoryUsageInBytes } } + @SuppressWarnings("java:S6541") // Keep aligned and scalar type dispatch together. private boolean putValueToColumns(final BatchData data, final Tablet tablet, final int rowIndex) { boolean isNeedFillTime = false; if (data.getDataType() == TSDataType.VECTOR) { @@ -614,6 +615,7 @@ private boolean putValueToColumns(final BatchData data, final Tablet tablet, fin return isNeedFillTime; } + @SuppressWarnings("java:S6541") // Keep marker transitions in one parser state machine. private void moveToNextChunkReader() throws IOException, IllegalStateException, IllegalPathException { ChunkHeader chunkHeader;