yossev commented on code in PR #7965:
URL: https://github.com/apache/gravitino/pull/7965#discussion_r2301071470


##########
api/src/main/java/org/apache/gravitino/Namespace.java:
##########
@@ -75,7 +75,10 @@ public static Namespace of(String... levels) {
    */
   public static Namespace fromString(String namespace) {
     Preconditions.checkArgument(namespace != null, "Cannot create a namespace 
with null input");
-    Preconditions.checkArgument(!namespace.endsWith("."), "Cannot create a 
namespace end with dot");
+    Preconditions.checkArgument(
+        !namespace.contains(" "), "Cannot create a namespace containing 
whitespace");

Review Comment:
   Working on a fix.



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

Reply via email to