huan233usc opened a new issue, #730:
URL: https://github.com/apache/iceberg-cpp/issues/730

   Sub-issue of #637 (item 2: Column Default Values).
   Iceberg v3 allows schema evolution with column default values (spec — 
Default values (https://iceberg.apache.org/spec/#default-values)):
     - initial-default: returned for rows that predate the column's addition,  
i.e. applied on the read path when a data file does not contain the field.
     - write-default: applied on the write path when a writer does not supply a 
value or the column.
   
    Planned scope:
    - [ ] Schema model: carry initial-default / write-default on SchemaField
    - [ ] JSON serde: parse/write the two fields using single-value 
serialization
    - [ ] Read path: project missing columns as the initial-default constant 
instead of null when reading data files written before the column existed
    - [ ] Write path: apply write-default where values are omitted; validation 
(e.g. adding a required column requires an initial-default, v3+ gating)
   I plan to work on this and will send PR(s) referencing this issue.


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