You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2023/03/27 01:58:17 UTC
[iotdb] 11/13: fix deserialize bug
This is an automated email from the ASF dual-hosted git repository.
hui pushed a commit to branch lmh/fileScan
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 5787d0f85813ceb907d64fb8423b4cdb54228bfc
Author: Minghui Liu <li...@foxmail.com>
AuthorDate: Tue Mar 21 10:51:34 2023 +0800
fix deserialize bug
---
.../db/mpp/plan/planner/plan/node/source/FileAggregationScanNode.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/plan/node/source/FileAggregationScanNode.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/plan/node/source/FileAggregationScanNode.java
index 9c1eeaa20c..5c997b9db7 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/plan/node/source/FileAggregationScanNode.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/plan/node/source/FileAggregationScanNode.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.db.mpp.plan.planner.plan.node.source;
import org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet;
import org.apache.iotdb.commons.path.PartialPath;
+import org.apache.iotdb.commons.path.PathDeserializeUtil;
import org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode;
import org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNodeId;
import org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNodeType;
@@ -165,7 +166,7 @@ public class FileAggregationScanNode extends SeriesSourceNode {
}
public static PlanNode deserialize(ByteBuffer buffer) {
- PartialPath pathPattern = PartialPath.deserialize(buffer);
+ PartialPath pathPattern = (PartialPath) PathDeserializeUtil.deserialize(buffer);
AggregationDescriptor aggregationDescriptor = AggregationDescriptor.deserialize(buffer);
int levelsSize = ReadWriteIOUtils.readInt(buffer);
int[] levels = new int[levelsSize];