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 ba5ab8ca468 [MINOR] StreamerUtil#getTableConfig should check whether 
hoodie.properties exists (#9464)
ba5ab8ca468 is described below

commit ba5ab8ca46863a67023e7172fb16a9a36d3b5acb
Author: Nicholas Jiang <[email protected]>
AuthorDate: Fri Aug 18 10:03:12 2023 +0800

    [MINOR] StreamerUtil#getTableConfig should check whether hoodie.properties 
exists (#9464)
---
 .../hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java
 
b/hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java
index 4912c0abf03..842e732abd4 100644
--- 
a/hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java
+++ 
b/hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java
@@ -312,7 +312,7 @@ public class StreamerUtil {
     FileSystem fs = FSUtils.getFs(basePath, hadoopConf);
     Path metaPath = new Path(basePath, HoodieTableMetaClient.METAFOLDER_NAME);
     try {
-      if (fs.exists(metaPath)) {
+      if (fs.exists(new Path(metaPath, 
HoodieTableConfig.HOODIE_PROPERTIES_FILE))) {
         return Option.of(new HoodieTableConfig(fs, metaPath.toString(), null, 
null));
       }
     } catch (IOException e) {

Reply via email to