This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch fix_tablet_get_value in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit b8628d9dbafb8196f0af17b65692f1b282ff3d43 Author: HTHou <[email protected]> AuthorDate: Thu Sep 19 19:01:17 2024 +0800 Fix getValue method in Tablet doesn't support Date and Timestamp type --- java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java b/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java index e0213197..253d99b6 100644 --- a/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java +++ b/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java @@ -946,7 +946,10 @@ public class Tablet { case BOOLEAN: return ((boolean[]) values[j])[i]; case INT64: + case TIMESTAMP: return ((long[]) values[j])[i]; + case DATE: + return ((LocalDate[]) values[j])[i]; default: throw new IllegalArgumentException("Unsupported type: " + schemas.get(j).getType()); }
