etseidl commented on code in PR #6757:
URL: https://github.com/apache/arrow-rs/pull/6757#discussion_r1851139987
##########
parquet/src/schema/types.rs:
##########
@@ -202,6 +202,33 @@ impl Type {
self.get_basic_info().has_repetition()
&& self.get_basic_info().repetition() != Repetition::REQUIRED
}
+
+ /// Returns `true` if this type is annotated as a list.
+ pub fn is_list(&self) -> bool {
+ match self.is_group() {
Review Comment:
I think Rust has warped me...I feel like I'm doing it wrong if I use `if` 😅.
But you're right that it would be more succinct.
--
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]