okhsunrog commented on code in PR #10927:
URL: https://github.com/apache/arrow-rs/pull/10927#discussion_r3905571534


##########
arrow-select/src/concat.rs:
##########
@@ -1708,6 +1708,124 @@ mod tests {
         assert_eq!(array.logical_null_count(), 10);
     }
 
+    #[test]
+    fn concat_string_view_dictionary_merges_duplicate_values() {
+        // Two independently-built `Dictionary<UInt8, Utf8View>` arrays 
holding the
+        // same 200 distinct values. Naively concatenating their dictionaries 
yields
+        // 400 entries, which overflows the u8 key range, but the distinct 
values do
+        // fit -- so the values must be merged and deduplicated instead. This 
mirrors
+        // a `Dictionary<UInt16, Utf8View>` column read in several partitions, 
each
+        // building its own dictionary, and then combined.

Review Comment:
   Done.



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