This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new becf21e Fix last with align by device bug (#4669)
becf21e is described below
commit becf21ef9c9e0429d4ca54c8b026d96b7fb6f871
Author: Xiangwei Wei <[email protected]>
AuthorDate: Fri Dec 31 10:13:45 2021 +0800
Fix last with align by device bug (#4669)
---
.../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();