This is an automated email from the ASF dual-hosted git repository.
jackietien 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 b932e8373ce Print file name while encountering error
b932e8373ce is described below
commit b932e8373ce4803b9f4327e7208a799c12b3582e
Author: JackieTien97 <[email protected]>
AuthorDate: Fri Aug 15 15:18:28 2025 +0800
Print file name while encountering error
---
.../dag/column/unary/scalar/ReadObjectColumnTransformer.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/unary/scalar/ReadObjectColumnTransformer.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/unary/scalar/ReadObjectColumnTransformer.java
index 02134d720d6..9bde98b351a 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/unary/scalar/ReadObjectColumnTransformer.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/unary/scalar/ReadObjectColumnTransformer.java
@@ -110,11 +110,13 @@ public class ReadObjectColumnTransformer extends
UnaryColumnTransformer {
File file = ObjectTypeUtils.getObjectPathFromBinary(binary);
long fileSize = file.length();
if (offset >= fileSize) {
- throw new SemanticException("offset is greater than object size");
+ throw new SemanticException(
+ "offset is greater than object size, file path is " +
file.getAbsolutePath());
}
long actualReadSize = Math.min(length < 0 ? fileSize : length, fileSize -
offset);
if (actualReadSize > Integer.MAX_VALUE) {
- throw new SemanticException("Read object size is too large (size > 2G)");
+ throw new SemanticException(
+ "Read object size is too large (size > 2G), file path is " +
file.getAbsolutePath());
}
fragmentInstanceContext.ifPresent(
context ->
context.getMemoryReservationContext().reserveMemoryCumulatively(actualReadSize));