xndai commented on code in PR #1169:
URL: https://github.com/apache/iceberg-cpp/pull/1169#discussion_r4760834353


##########
src/iceberg/json_serde.cc:
##########
@@ -1687,6 +1689,10 @@ Result<std::unique_ptr<TableMetadata>> 
TableMetadataFromJson(const nlohmann::jso
 
   ICEBERG_ASSIGN_OR_RAISE(table_metadata->snapshots,
                           FromJsonList<Snapshot>(json, kSnapshots, 
SnapshotFromJson));
+  if (auto status = table_metadata->ValidateSequenceAndRowIdBounds(); !status) 
{

Review Comment:
   I'd say remove this and do it in a separate CR. We need a thoughtful 
consideration on how to do validation. We don't want these validation logics 
spread all over the places. And I don't think this is the right place for 
validation either. This class should just be doing json parsing. The semantics 
validation can be done on a higher level. 



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