shanielh commented on code in PR #12401:
URL: https://github.com/apache/arrow-rs/pull/12401#discussion_r4675707477


##########
parquet/src/arrow/arrow_writer/mod.rs:
##########
@@ -5041,6 +5041,50 @@ mod tests {
         assert_eq!(index.num_data_pages(0, 1), Some(1)); // 1 page
     }
 
+    #[test]
+    fn test_dictionary_array_writes_same_file_as_its_values() {
+        // Small dictionaries get their statistics from the values the rows 
reference, the
+        // largest from the rows. Either way they must be the plain values' 
statistics
+        let mut state = 0x9e37_79b9_7f4a_7c15_u64;
+        let mut next = move |n: u64| {
+            state ^= state << 13;
+            state ^= state >> 7;
+            state ^= state << 17;
+            state % n
+        };
+        for dict_len in [1, 3, 50, 2000, 100_000] {

Review Comment:
   ✅ Removed, `2,000` was enough. 



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