jerryshao commented on code in PR #7794:
URL: https://github.com/apache/gravitino/pull/7794#discussion_r2269277787


##########
catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java:
##########
@@ -447,6 +446,11 @@ public Fileset createMultipleLocationFileset(
 
           filesetPathsBuilder.put(entry.getKey(), formalizePath);
           FileSystem fs = getFileSystemWithCache(formalizePath, conf);
+
+          if (fs.exists(formalizePath) && 
fs.getFileStatus(formalizePath).isFile()) {
+            throw new RuntimeException("Fileset location cannot be a file: " + 
formalizePath);

Review Comment:
   You'd better throw an "IllegalArgumentException", as it is mainly due to 
user pass in a wrong location.



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