This is an automated email from the ASF dual-hosted git repository.

hui pushed a commit to branch lmh/addQueryIT
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 1e92634f2bc11bf7bf0dac0f83162d970ab4a72b
Author: Minghui Liu <[email protected]>
AuthorDate: Tue Jun 21 09:56:36 2022 +0800

    add PathNumOverLimitException
---
 .../exception/sql/PathNumOverLimitException.java   | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/exception/sql/PathNumOverLimitException.java
 
b/server/src/main/java/org/apache/iotdb/db/exception/sql/PathNumOverLimitException.java
new file mode 100644
index 0000000000..43077c8962
--- /dev/null
+++ 
b/server/src/main/java/org/apache/iotdb/db/exception/sql/PathNumOverLimitException.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.db.exception.sql;
+
+import org.apache.iotdb.db.conf.IoTDBDescriptor;
+
+public class PathNumOverLimitException extends SemanticException {
+
+  public PathNumOverLimitException() {
+    super(
+        String.format(
+            "Too many paths in one query! Currently allowed max deduplicated 
path number is %d. Please use slimit or adjust max_deduplicated_path_num in 
iotdb-engine.properties.",
+            
IoTDBDescriptor.getInstance().getConfig().getMaxQueryDeduplicatedPathNum()));
+  }
+}

Reply via email to