luoluoyuyu commented on code in PR #14922:
URL: https://github.com/apache/iotdb/pull/14922#discussion_r1973231414
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/connector/protocol/IoTDBConnector.java:
##########
@@ -331,6 +336,22 @@ public void validate(final PipeParameterValidator
validator) throws Exception {
CONNECTOR_FORMAT_TABLET_VALUE,
CONNECTOR_FORMAT_HYBRID_VALUE,
CONNECTOR_FORMAT_TS_FILE_VALUE);
+
+ final String dataDistributionStrategy =
+ parameters
+ .getStringOrDefault(
+ Arrays.asList(
+ CONNECTOR_DATA_DISTRIBUTION_STRATEGY,
SINK_DATA_DISTRIBUTION_STRATEGY),
+ CONNECTOR_DATA_DISTRIBUTION_STRATEGY_DEFAULT_VALUE)
+ .trim()
+ .toLowerCase();
+ validator.validate(
+ arg -> arg.equals("any") || arg.equals("all"),
Review Comment:
Wouldn't it be better to define two constants for Any and All?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]