miomiocat commented on code in PR #1512:
URL: https://github.com/apache/paimon-rust/pull/1512#discussion_r4674904972


##########
crates/paimon/src/arrow/format/mosaic.rs:
##########
@@ -867,17 +867,15 @@ fn take_row_slices(
     slices: Option<&[(usize, usize)]>,
     target_schema: &SchemaRef,
 ) -> crate::Result<RecordBatch> {
+    let batch = ensure_schema(batch, target_schema)?;

Review Comment:
   Updated in b8a7af1a. Mosaic now slices before validating the requested 
schema, including for empty and disjoint selections. The regression selects the 
non-null values of a nullable Int32 column into a non-nullable projection and 
also checks that reading the full batch still rejects its nulls.



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

Reply via email to