DaqianLiao opened a new pull request, #10528:
URL: https://github.com/apache/iceberg/pull/10528
This pr simplifies the newTableMetadata method call in Iceberg by removing
the redundant TableMetadata class.
We can create `TableMetadata` object by using method
'org.apache.iceberg.TableMetadata#newTableMetadata(org.apache.iceberg.Schema,
org.apache.iceberg.PartitionSpec, org.apache.iceberg.SortOrder,
java.lang.String, java.util.Map<java.lang.String,java.lang.String>)' so that we
can remove redundant code as follow:
`int formatVersion =
PropertyUtil.propertyAsInt(
properties, TableProperties.FORMAT_VERSION,
DEFAULT_TABLE_FORMAT_VERSION);`
--
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]