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 7b040080574 [HUDI-6531] Little adjust to avoid creating an object but
no need in one case (#9197)
7b040080574 is described below
commit 7b040080574091039973b8e7d01a58fd5922d297
Author: Stan <[email protected]>
AuthorDate: Sun Jul 16 11:31:38 2023 +0800
[HUDI-6531] Little adjust to avoid creating an object but no need in one
case (#9197)
---
.../java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java
b/hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java
index 6a6f46a65ef..9ce83a7d953 100644
---
a/hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java
+++
b/hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java
@@ -78,8 +78,8 @@ public class FileSystemBackedTableMetadata implements
HoodieTableMetadata {
@Override
public List<String> getAllPartitionPaths() throws IOException {
Path basePath = new Path(datasetBasePath);
- FileSystem fs = basePath.getFileSystem(hadoopConf.get());
if (assumeDatePartitioning) {
+ FileSystem fs = basePath.getFileSystem(hadoopConf.get());
return FSUtils.getAllPartitionFoldersThreeLevelsDown(fs,
datasetBasePath);
}