miomiocat commented on code in PR #1518:
URL: https://github.com/apache/paimon-rust/pull/1518#discussion_r4690669969
##########
bindings/c/src/table.rs:
##########
@@ -1082,8 +1086,12 @@ pub unsafe extern "C" fn paimon_table_read_to_arrow(
table_read = table_read.with_resources(resources.clone());
}
+ let read_type = state.read_type.clone();
match table_read.to_arrow(selected) {
Ok(stream) => {
+ let stream = stream
+ .map(move |batch| variant::canonicalize_batch(batch?,
&read_type))
Review Comment:
Fixed in f1fa916a. Ordinary C table reads and current-state audit reads now
share the VARIANT stream normalization. The audit path supplies its actual
output fields, including `rowkind` and the optional `_SEQUENCE_NUMBER` before
the projected user columns. I added a regression that reads the same tracked
Parquet table through both C APIs with a reordered projection. It checks the
row IDs, validity `[false, true]`, and the original bytes of the encoded
VARIANT null. The C library builds and its test target compiles. Thanks for the
reproducer.
--
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]