This is an automated email from the ASF dual-hosted git repository. hui pushed a commit to branch lmh/GroupByDebug in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 194279520ea03e8abb9b1b5c34993abbfea523d3 Author: liuminghui233 <[email protected]> AuthorDate: Mon May 30 19:43:31 2022 +0800 add a semantic check --- .../org/apache/iotdb/db/mpp/plan/statement/crud/QueryStatement.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/QueryStatement.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/QueryStatement.java index 35a565f3e7..2c1d8cb2fb 100644 --- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/QueryStatement.java +++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/crud/QueryStatement.java @@ -240,6 +240,10 @@ public class QueryStatement extends Statement { throw new SemanticException("Raw data and aggregation hybrid query is not supported."); } } + } else { + if (isGroupByTime() || isGroupByLevel()) { + throw new SemanticException("Raw data query doesn't support GROUP BY."); + } } if (isAlignByDevice()) {
