yangzhg commented on a change in pull request #8336:
URL: https://github.com/apache/incubator-doris/pull/8336#discussion_r821258659



##########
File path: fe/fe-core/src/main/java/org/apache/doris/analysis/ExportStmt.java
##########
@@ -232,16 +232,17 @@ public static String checkPath(String path, 
StorageBackend.StorageType type) thr
         if (Strings.isNullOrEmpty(path)) {
             throw new AnalysisException("No dest path specified.");
         }
-
+        if (type == StorageBackend.StorageType.BROKER) {
+            if (!path.toLowerCase().contains("bos") && 
!path.toLowerCase().contains("afs")
+                    && !path.toLowerCase().contains("hdfs")) {
+                throw new AnalysisException("Invalid export path. please use 
valid 'HDFS://', 'AFS://' or 'BOS://' path.");
+            }
+            return path;
+        }

Review comment:
       How  about a path  `nvalid_schema://xxbos/xxafs_path/path-contians-hdfs`




-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to