aishikbh commented on code in PR #11955:
URL: https://github.com/apache/pinot/pull/11955#discussion_r1384577699


##########
pinot-spi/src/main/java/org/apache/pinot/spi/config/task/AdhocTaskConfig.java:
##########
@@ -57,6 +57,7 @@ public AdhocTaskConfig(@JsonProperty(value = "taskType", 
required = true) String
       @JsonProperty("taskConfigs") @Nullable Map<String, String> taskConfigs) {
     Preconditions.checkArgument(taskType != null, "'taskType' must be 
configured");
     Preconditions.checkArgument(tableName != null, "'tableName' must be 
configured");
+    Preconditions.checkArgument(taskName == null || !taskName.contains("/"), 
"'taskName' must not contain '/'");

Review Comment:
   > @aishikbh Can we add the testing case to cover this? Please check 
`AdhocTaskConfigTest`
   
   I have added tests related to invalid arguments in AdhocTaskConfig.
   
   > @aishikbh - Could you add this to your message **taskName' must not 
contain path separator '/'**
   
   I have rephrased the error message as well.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to