You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2023/11/13 04:16:35 UTC
(iotdb) branch master updated: [IOTDB-6246] Pipe: Validator validates the range of values for optional parameters improperly (#11520)
This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new c86cb0e76c6 [IOTDB-6246] Pipe: Validator validates the range of values for optional parameters improperly (#11520)
c86cb0e76c6 is described below
commit c86cb0e76c6102130f9fabbad178cf8b15bd047b
Author: yschengzi <87...@users.noreply.github.com>
AuthorDate: Mon Nov 13 12:16:29 2023 +0800
[IOTDB-6246] Pipe: Validator validates the range of values for optional parameters improperly (#11520)
---
.../iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java b/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
index 7d55b44f37a..9ea9fb64d9b 100644
--- a/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
+++ b/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
@@ -68,10 +68,6 @@ public class PipeParameterValidator {
}
}
- if (canBeOptional) {
- return this;
- }
-
throw new PipeAttributeNotProvidedException(
String.format("%s should be one of %s", key, Arrays.toString(optionalValues)));
}