xndai commented on code in PR #1169:
URL: https://github.com/apache/iceberg-cpp/pull/1169#discussion_r4760869397
##########
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:
If you agree, we should update the PR title. This PR should scope down to
only fixing the potential JSON parsing issue. We open another issue for
semantics validation.
--
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]