You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/09/06 15:55:00 UTC

[GitHub] [incubator-druid] himanshug commented on a change in pull request #8465: disallow whitespace characters except space in data source names

himanshug commented on a change in pull request #8465: disallow whitespace characters except space in data source names
URL: https://github.com/apache/incubator-druid/pull/8465#discussion_r321801221
 
 

 ##########
 File path: server/src/main/java/org/apache/druid/segment/indexing/DataSchema.java
 ##########
 @@ -104,11 +106,13 @@ static void validateDatasourceName(String dataSource)
         !Strings.isNullOrEmpty(dataSource),
         "dataSource cannot be null or empty. Please provide a dataSource."
     );
-    Preconditions.checkArgument(!dataSource.contains("/"), "dataSource cannot contain the '/' character.");
+    Pattern p = Pattern.compile("(?s).*[^\\S ].*");
 
 Review comment:
   thanks, for some reason I thought we did not allow space.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org