rdblue commented on a change in pull request #2887:
URL: https://github.com/apache/iceberg/pull/2887#discussion_r681879159
##########
File path: core/src/main/java/org/apache/iceberg/TableMetadata.java
##########
@@ -57,31 +58,29 @@
private static final long ONE_MINUTE = TimeUnit.MINUTES.toMillis(1);
- /**
- * @deprecated will be removed in 0.9.0; use newTableMetadata(Schema,
PartitionSpec, String, Map) instead.
- */
- @Deprecated
- public static TableMetadata newTableMetadata(TableOperations ops,
- Schema schema,
- PartitionSpec spec,
- String location,
- Map<String, String> properties)
{
- return newTableMetadata(schema, spec, SortOrder.unsorted(), location,
properties, DEFAULT_TABLE_FORMAT_VERSION);
- }
-
public static TableMetadata newTableMetadata(Schema schema,
PartitionSpec spec,
SortOrder sortOrder,
String location,
Map<String, String> properties)
{
- return newTableMetadata(schema, spec, sortOrder, location, properties,
DEFAULT_TABLE_FORMAT_VERSION);
+ return newTableMetadata(schema, spec, sortOrder, location,
unreservedProperties(properties),
Review comment:
I think that the `newTableMetadata` method that accepts `formatVersion`
needs to ensure that there is no `format-version` property set. Otherwise,
there is still a case where someone can set both.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]