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

   ## Summary
   
   Move `DataFile` JSON serialization and deserialization from the REST catalog 
into core serde.
   
   This is a mechanical move. It does not intentionally change the JSON format 
or validation behavior. REST keeps forwarding overloads, so existing REST 
callers continue to use the same API.
   
   ## Why
   
   Core `FileScanTask` serde needs to read and write data files without 
depending on the REST catalog.
   
   Before:
   
   ```cpp
   iceberg::rest::DataFileFromJson(json, specs, schema);
   ```
   
   After:
   
   ```cpp
   iceberg::DataFileFromJson(json, specs, schema);
   ```
   
   ## Stack
   
   This is **1 of 4**:
   
   1. **This PR:** move `DataFile` serde into core
   2. Make `DataFile` JSON Java-compatible
   3. Add core `FileScanTask` serde (#939)
   4. Validate schema and partition IDs strictly (#940)
   
   Each PR targets `main`; later PRs contain the commits from earlier PRs.
   
   ## Testing
   
   - Built `json_serde_test` and `rest_catalog_test` on the complete stack.
   - Full stack: 142 JSON serde tests passed.
   - Full stack: 332 REST tests passed; 1 existing test skipped.


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