alamb commented on code in PR #12310:
URL: https://github.com/apache/arrow-rs/pull/12310#discussion_r4739950811
##########
parquet-variant/src/variant/view.rs:
##########
@@ -247,6 +248,46 @@ impl<'m, 'v> VariantView<'m, 'v> {
}
}
+ /// Follows `path` from this value, or returns `None` if a step does not
exist.
+ ///
+ /// A [`VariantPathElement::ListElement`] step does not exist, as in
[`Variant::get_path`].
Review Comment:
I don't understand this sentence. Maybe an example would help (is it saying
this function doesn't follow list access like `[0]`)?
##########
parquet-variant/src/variant/view.rs:
##########
@@ -247,6 +248,46 @@ impl<'m, 'v> VariantView<'m, 'v> {
}
}
+ /// Follows `path` from this value, or returns `None` if a step does not
exist.
+ ///
+ /// A [`VariantPathElement::ListElement`] step does not exist, as in
[`Variant::get_path`].
Review Comment:
If it doesn't support lists, is that something that is added in a follow on
PR?
##########
parquet-variant/src/decoder.rs:
##########
@@ -120,23 +120,6 @@ pub(crate) enum OffsetSizeBytes {
}
impl OffsetSizeBytes {
- /// Build from the `offset_size_minus_one` bits (see spec).
Review Comment:
So the point is that the error handling takes too much space / messes up
inlining?
I was wondering if removing this somehow removed required validation, but I
think given it is only looking at 2 bits there are only 4 possible values, so
that should be ok
--
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]