Skip to content

Commit bfb4946

Browse files
authored
[HUDI-4951] Fix incorrect use of Long.getLong() (#6828)
1 parent 986b631 commit bfb4946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ private void commitTableChange(InternalSchema newSchema, HoodieTableMetaClient m
16941694
throw new HoodieCommitException("Failed to commit " + instantTime + " unable to save inflight metadata ", io);
16951695
}
16961696
Map<String, String> extraMeta = new HashMap<>();
1697-
extraMeta.put(SerDeHelper.LATEST_SCHEMA, SerDeHelper.toJson(newSchema.setSchemaId(Long.getLong(instantTime))));
1697+
extraMeta.put(SerDeHelper.LATEST_SCHEMA, SerDeHelper.toJson(newSchema.setSchemaId(Long.parseLong(instantTime))));
16981698
// try to save history schemas
16991699
FileBasedInternalSchemaStorageManager schemasManager = new FileBasedInternalSchemaStorageManager(metaClient);
17001700
schemasManager.persistHistorySchemaStr(instantTime, SerDeHelper.inheritSchemas(newSchema, historySchemaStr));

0 commit comments

Comments
 (0)