alamb commented on code in PR #10229:
URL: https://github.com/apache/arrow-rs/pull/10229#discussion_r3498691453


##########
arrow-row/src/variable.rs:
##########
@@ -69,6 +71,12 @@ pub(crate) fn non_null_padded_length(len: usize) -> usize {
     }
 }
 
+pub(crate) fn decode_nulls_sentinel(rows: &[&[u8]], options: SortOptions) -> 
Option<NullBuffer> {
+    let nulls = BooleanBuffer::collect_bool(rows.len(), |x| rows[x][0] != 
null_sentinel(options));

Review Comment:
   Another thought is we could potentially make a null sentinel type and then 
template the relevant functions (to have rust do the code copy for us)



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