kamcheungting-db opened a new pull request, #1196:
URL: https://github.com/apache/iceberg-cpp/pull/1196

   View metadata can now be parsed from and serialized to Iceberg view format 
v1 JSON.
   
   Depends on #1069, stacked on its head `b2bdbdae`. This draft targets `main`, 
so its diff includes the foundation changes until #1069 merges. [Review the 
JSON changes 
only](https://github.com/kamcheungting-db/iceberg-cpp/commit/220f6d6571208ed149afbd549ec8ef3911664b8d).
   
   ## Changes
   
   - Add core serde for view representations, versions, history entries, and 
complete metadata, reusing the existing schema, namespace, integer, and 
string-map helpers.
   - Retain unknown representation payloads as a JSON object, including nested 
values, so serialization and property edits preserve them. Reject payloads that 
override the `type` discriminator.
   - Enforce required fields and metadata invariants, accept empty default 
namespaces and absent/null default catalogs, and canonicalize SQL discriminator 
variants to `sql`.
   - Reject integer literals outside `INT64_MIN` through `UINT64_MAX` in the 
string parser instead of silently rounding them. Require array-valued struct 
fields in the shared schema parser, including nested structs.
   
   ## Validation
   
   - 67 view tests pass: 34 foundation cases and 33 JSON cases, including 12 
exact fixtures pinned from Java and Rust.
   - 175 existing JSON serde tests, 580 schema tests, and the C++20 
public-header compatibility executable pass.
   - The new integer-overflow and malformed-field regressions failed before the 
fixes and pass afterward; supported numeric boundaries, floating-point 
literals, and quoted numeric text still round trip through property edits.
   - Clang 18 Debug build with ASAN, UBSAN, and leak checks. The local libc++18 
exception runtime requires 
`ASAN_OPTIONS=detect_leaks=1:alloc_dealloc_mismatch=0`; the default setting 
also reports the runtime mismatch in existing schema tests.
   - Pre-commit and changed-file clang-tidy checks pass.
   
   View updates/requirements, the metadata builder, catalog APIs, and REST 
integration follow in separate PRs.
   


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