You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by et...@apache.org on 2024/06/18 11:07:38 UTC
(iceberg) branch main updated: Core: Simplify newTableMetadata method in TableMetadata (#10528)
This is an automated email from the ASF dual-hosted git repository.
etudenhoefner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new 3c71440277 Core: Simplify newTableMetadata method in TableMetadata (#10528)
3c71440277 is described below
commit 3c714402773296e168263c63b5ffd346fdb654b0
Author: DaqianLiao <36...@qq.com>
AuthorDate: Tue Jun 18 19:07:33 2024 +0800
Core: Simplify newTableMetadata method in TableMetadata (#10528)
---
core/src/main/java/org/apache/iceberg/TableMetadata.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/core/src/main/java/org/apache/iceberg/TableMetadata.java b/core/src/main/java/org/apache/iceberg/TableMetadata.java
index 9587c57a0f..a7edddecad 100644
--- a/core/src/main/java/org/apache/iceberg/TableMetadata.java
+++ b/core/src/main/java/org/apache/iceberg/TableMetadata.java
@@ -73,12 +73,7 @@ public class TableMetadata implements Serializable {
public static TableMetadata newTableMetadata(
Schema schema, PartitionSpec spec, String location, Map<String, String> properties) {
- SortOrder sortOrder = SortOrder.unsorted();
- int formatVersion =
- PropertyUtil.propertyAsInt(
- properties, TableProperties.FORMAT_VERSION, DEFAULT_TABLE_FORMAT_VERSION);
- return newTableMetadata(
- schema, spec, sortOrder, location, persistedProperties(properties), formatVersion);
+ return newTableMetadata(schema, spec, SortOrder.unsorted(), location, properties);
}
private static Map<String, String> unreservedProperties(Map<String, String> rawProperties) {