This is an automated email from the ASF dual-hosted git repository. xiangweiwei pushed a commit to branch RequeryV2 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit dbe29eb9348268336171724a02c3bb22134fe51d Author: Alima777 <[email protected]> AuthorDate: Fri May 21 14:16:16 2021 +0800 add check for last query --- .../java/org/apache/iotdb/db/qp/logical/crud/LastQueryOperator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/LastQueryOperator.java b/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/LastQueryOperator.java index 72b73d4..4f8b91a 100644 --- a/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/LastQueryOperator.java +++ b/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/LastQueryOperator.java @@ -38,6 +38,10 @@ public class LastQueryOperator extends QueryOperator { public void check() throws LogicalOperatorException { super.check(); + if (isAlignByDevice()) { + throw new LogicalOperatorException("Last query doesn't support align by device."); + } + for (ResultColumn resultColumn : selectComponent.getResultColumns()) { Expression expression = resultColumn.getExpression(); if (!(expression instanceof TimeSeriesOperand)) {
