manuzhang commented on code in PR #1162:
URL: https://github.com/apache/iceberg-cpp/pull/1162#discussion_r4680325107


##########
src/iceberg/table_metadata.cc:
##########
@@ -773,7 +773,7 @@ Status 
TableMetadataBuilder::Impl::AssignUUID(std::string_view uuid) {
 
 Status TableMetadataBuilder::Impl::UpgradeFormatVersion(int8_t 
new_format_version) {
   // Check that the new format version is supported
-  if (new_format_version > TableMetadata::kSupportedTableFormatVersion) {

Review Comment:
   Yes, we didn't check whether new_format_version is less than 1 or not.



-- 
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]

Reply via email to