This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 2322ac9d227 [HUDI-6475] Optimize TableNotFoundException message (#9120)
2322ac9d227 is described below
commit 2322ac9d22784df2ccebcbdf898286c16fe0c211
Author: huangxiaoping <[email protected]>
AuthorDate: Wed Jul 5 11:18:04 2023 +0800
[HUDI-6475] Optimize TableNotFoundException message (#9120)
---
.../src/main/java/org/apache/hudi/DataSourceUtils.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
b/hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
index c9c10fd7c7e..47a45479c09 100644
---
a/hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
+++
b/hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
@@ -55,9 +55,11 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
import static
org.apache.hudi.common.util.CommitUtils.getCheckpointValueAsString;
@@ -81,7 +83,7 @@ public class DataSourceUtils {
}
}
- throw new TableNotFoundException("Unable to find a hudi table for the user
provided paths.");
+ throw new
TableNotFoundException(Arrays.stream(userProvidedPaths).map(Path::toString).collect(Collectors.joining(",")));
}
/**