gyanranjanpanda commented on code in PR #9373:
URL: https://github.com/apache/arrow-rs/pull/9373#discussion_r2796696956


##########
arrow-select/src/interleave.rs:
##########
@@ -426,20 +429,21 @@ fn interleave_fallback_dictionary<K: 
ArrowDictionaryKeyType>(
     let any_nulls = dictionaries.iter().any(|d| d.keys().nulls().is_some());
     let (new_keys, nulls) = if any_nulls {
         let mut has_nulls = false;
-        let new_keys: Vec<K::Native> = indices
+        let new_keys: Result<Vec<K::Native>, ArrowError> = indices

Review Comment:
   You're right, thanks for the feedback! I've reverted these changes  the 
docstring already documents that callers must verify overflow beforehand, so 
the Result-based checks here were redundant. The overflow is now handled 
upstream in 
   interleave_dictionaries
    before this function is ever called.



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