This is an automated email from the ASF dual-hosted git repository.
yongzao pushed a commit to branch table-forecast-function-v2
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/table-forecast-function-v2 by
this push:
new c71f6773f25 forecast table bug fix
c71f6773f25 is described below
commit c71f6773f25fa528acefbf0fe84c869c8fae070d
Author: Yongzao <[email protected]>
AuthorDate: Wed Dec 17 18:30:57 2025 +0800
forecast table bug fix
---
.../plan/planner/TableOperatorGenerator.java | 25 ++++++++++++++--------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TableOperatorGenerator.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TableOperatorGenerator.java
index 6c6ae5cf327..a2bd0dc4815 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TableOperatorGenerator.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TableOperatorGenerator.java
@@ -2013,15 +2013,22 @@ public class TableOperatorGenerator extends
PlanVisitor<Operator, LocalExecution
@Override
public Operator visitGroup(GroupNode node, LocalExecutionPlanContext
context) {
- StreamSortNode streamSortNode =
- new StreamSortNode(
- node.getPlanNodeId(),
- node.getChild(),
- node.getOrderingScheme(),
- false,
- false,
- node.getPartitionKeyCount() - 1);
- return visitStreamSort(streamSortNode, context);
+ if (node.getPartitionKeyCount() == 0) {
+ SortNode sortNode =
+ new SortNode(
+ node.getPlanNodeId(), node.getChild(), node.getOrderingScheme(),
false, false);
+ return visitSort(sortNode, context);
+ } else {
+ StreamSortNode streamSortNode =
+ new StreamSortNode(
+ node.getPlanNodeId(),
+ node.getChild(),
+ node.getOrderingScheme(),
+ false,
+ false,
+ node.getPartitionKeyCount() - 1);
+ return visitStreamSort(streamSortNode, context);
+ }
}
@Override