This is an automated email from the ASF dual-hosted git repository. xiangweiwei pushed a commit to branch lastAlignbydevice in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 1a94895243d27382e5b60a0709bf344598f4694e Author: Alima777 <[email protected]> AuthorDate: Thu Dec 30 15:43:50 2021 +0800 Fix last with align by device bug --- .../main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java b/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java index 0cf097c..f04ad93 100644 --- a/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java +++ b/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java @@ -626,6 +626,8 @@ public class PhysicalGenerator { throw new QueryProcessException("group by level does not support align by device now."); } alignByDevicePlan.setAggregationPlan((AggregationPlan) queryPlan); + } else if (queryPlan instanceof LastQueryPlan) { + throw new QueryProcessException("Last query does not support align by device."); } List<PartialPath> prefixPaths = queryOperator.getFromOperator().getPrefixPaths();
