Skip to content

Commit 593ea85

Browse files
authored
[HUDI-7288] Fix ArrayIndexOutOfBoundsException when upgrade nonPartitionedTable created by 0.10/0.11 HUDI version (#10482)
1 parent d22bdc5 commit 593ea85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/upgrade/FourToFiveUpgradeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Map<ConfigProperty, String> upgrade(HoodieWriteConfig config, HoodieEngin
7777

7878
private boolean hasDefaultPartitionPath(HoodieWriteConfig config, HoodieTable table) throws IOException {
7979
HoodieTableConfig tableConfig = table.getMetaClient().getTableConfig();
80-
if (!tableConfig.getPartitionFields().isPresent()) {
80+
if (!tableConfig.isTablePartitioned()) {
8181
return false;
8282
}
8383
String checkPartitionPath = DEPRECATED_DEFAULT_PARTITION_PATH;

0 commit comments

Comments
 (0)