viirya commented on a change in pull request #1506:
URL: https://github.com/apache/arrow-rs/pull/1506#discussion_r837797417



##########
File path: arrow/src/array/array_binary.rs
##########
@@ -1020,8 +1020,17 @@ impl<'a> std::iter::Iterator for DecimalIter<'a> {
             }
         }
     }
+
+    #[inline]
+    fn size_hint(&self) -> (usize, Option<usize>) {
+        let remain = self.array.len() - self.current;
+        (remain, Some(remain))
+    }
 }
 
+/// iterator has have known size.
+impl<'a> std::iter::ExactSizeIterator for DecimalIter<'a> {}

Review comment:
       Should we have it in `iterator.rs`? I see other `ExactSizeIterator`s 
implementations located there.




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to