Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
Fokko commented on PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#issuecomment-2807429010 Thanks for working on this @zhjwpku, and thanks for the review @lidavidm, @yingcai-cy and @wgtmac 🙌 -- This is an automated message from the Apache Git Service. To respond to the message

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
Fokko merged PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74 -- 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: issues-unsubscr...@iceberg.apach

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
zhjwpku commented on PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#issuecomment-2805025426 I've updated the PR to use `ToJson` as the serialization function name, also only write the summary map when there is an operation, this is the same behavior from java impl[1] [1]

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043603653 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(cons

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044911397 ## src/iceberg/json_internal.cc: ## @@ -419,4 +520,75 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044876359 ## src/iceberg/json_internal.cc: ## @@ -419,4 +520,75 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
Fokko commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044843490 ## src/iceberg/json_internal.cc: ## @@ -419,4 +520,75 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); } +

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044591101 ## src/iceberg/json_internal.cc: ## @@ -419,4 +523,77 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044572526 ## src/iceberg/json_internal.cc: ## @@ -419,4 +523,77 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044455111 ## src/iceberg/json_internal.cc: ## @@ -419,4 +520,75 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r202952 ## src/iceberg/json_internal.cc: ## @@ -419,4 +520,75 @@ Result> PartitionSpecFromJson( return std::make_unique(schema, spec_id, std::move(partition_fields)); }

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044266834 ## src/iceberg/snapshot.h: ## @@ -139,11 +196,11 @@ struct SnapshotSummaryFields { /// Other Fields, see https://iceberg.apache.org/spec/#other-fields /// \brie

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-15 Thread via GitHub
yingcai-cy commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2044137927 ## src/iceberg/snapshot.h: ## @@ -139,11 +196,11 @@ struct SnapshotSummaryFields { /// Other Fields, see https://iceberg.apache.org/spec/#other-fields /// \b

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043599178 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(cons

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043598305 ## src/iceberg/snapshot.h: ## @@ -54,13 +77,35 @@ struct ICEBERG_EXPORT SnapshotRef { /// of the snapshot reference to keep while expiring snapshots. Defaults to

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043592188 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(cons

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043592188 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(cons

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
zhjwpku commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043592188 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(cons

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043358743 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(const

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043357992 ## src/iceberg/json_internal.cc: ## @@ -231,6 +296,53 @@ nlohmann::json SchemaToJson(const Schema& schema) { return json; } +nlohmann::json SnapshotRefToJson(const

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
wgtmac commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2042433243 ## src/iceberg/snapshot.h: ## @@ -54,13 +77,35 @@ struct ICEBERG_EXPORT SnapshotRef { /// of the snapshot reference to keep while expiring snapshots. Defaults to t

Re: [PR] feat: snapshot serde [iceberg-cpp]

2025-04-14 Thread via GitHub
lidavidm commented on code in PR #74: URL: https://github.com/apache/iceberg-cpp/pull/74#discussion_r2043228407 ## test/json_internal_test.cc: ## @@ -148,4 +148,96 @@ TEST(JsonPartitionTest, PartitionSpec) { EXPECT_EQ(spec, *parsed_spec_result.value()); } +TEST(JsonInterna