Skip to content

Commit 622234d

Browse files
authored
[AMORO-3857] Make the metadata file name conform to the Iceberg spec (#3858)
Each version of table metadata is stored in a metadata folder under the table’s base location using a naming scheme that includes a version and UUID: <V>-<random-uuid>.metadata.json.
1 parent b24ad3c commit 622234d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amoro-ams/src/main/java/org/apache/amoro/server/utils/InternalTableUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private static String genNewMetadataFileLocation(TableMetadata meta, long newVer
111111
TableProperties.METADATA_COMPRESSION, TableProperties.METADATA_COMPRESSION_DEFAULT);
112112
String fileExtension = TableMetadataParser.getFileExtension(codecName);
113113
return genMetadataFileLocation(
114-
meta, String.format("v%05d-%s%s", newVersion, UUID.randomUUID(), fileExtension));
114+
meta, String.format("%05d-%s%s", newVersion, UUID.randomUUID(), fileExtension));
115115
}
116116

117117
/**

0 commit comments

Comments
 (0)