miomiocat opened a new pull request, #1518: URL: https://github.com/apache/paimon-rust/pull/1518
### Purpose Closes #1517. Preserve the bytes and scalar types of valid VARIANT values across the Arrow C interface, and make SQL NULL distinguishable from an encoded variant null. ### Brief change log - Canonicalize VARIANT columns from the projected Paimon schema, including fields nested inside arrays, maps and rows. - Translate legacy empty payload pairs to struct nulls, validate non-null payloads, and reject an incomplete pair. Ordinary binary row fields keep their own semantics. ### Tests Added Arrow C Data round-trip cases, non-JSON scalar types, sliced SQL and variant nulls, incomplete payloads, nested values, ordinary rows and empty batches. Local verification passed with `cargo build --locked -p paimon-c --lib` and `cargo fmt --all -- --check`. Test execution is left to upstream CI. ### API and Format The existing Arrow C read returns a struct with binary `value` and `metadata` children and uses the outer validity bitmap for SQL NULL. ### Documentation The C binding guide describes the payload fields and null representation. -- 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]
