This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a commit to branch object_type
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/object_type by this push:
new f4b56c99cf2 fix NaN bug 0826 (#16263)
f4b56c99cf2 is described below
commit f4b56c99cf2ede80742f8f075e808eb41730ba6b
Author: shuwenwei <[email protected]>
AuthorDate: Tue Aug 26 10:52:35 2025 +0800
fix NaN bug 0826 (#16263)
---
.../org/apache/iotdb/db/utils/model/CompressedTsFileModelReader.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/model/CompressedTsFileModelReader.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/model/CompressedTsFileModelReader.java
index d3098221999..99536342f36 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/model/CompressedTsFileModelReader.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/model/CompressedTsFileModelReader.java
@@ -134,12 +134,13 @@ public class CompressedTsFileModelReader extends
ModelReader {
Decoder.getDecoderByType(chunkHeader.getEncodingType(),
chunkHeader.getDataType());
byte[] bitmap = null;
+ int size = 0;
if (uncompressedPageData.hasRemaining()) {
- int size = ReadWriteIOUtils.readInt(uncompressedPageData);
+ size = ReadWriteIOUtils.readInt(uncompressedPageData);
bitmap = new byte[(size + 7) / 8];
uncompressedPageData.get(bitmap);
}
- while (decoder.hasNext(uncompressedPageData)) {
+ for (int i = 0; i < size; i++) {
float[] currentQueryResult =
results.get(indexes[currentQueryIndex]);
if (currentResultSetIndex >= currentQueryResult.length) {
currentQueryIndex++;