tustvold commented on code in PR #2181:
URL: https://github.com/apache/arrow-rs/pull/2181#discussion_r930782833
##########
arrow/src/array/array_string.rs:
##########
@@ -313,6 +313,27 @@ impl<'a, OffsetSize: OffsetSizeTrait> ArrayAccessor
}
}
+impl<OffsetSize: OffsetSizeTrait> From<GenericListArray<OffsetSize>>
+ for GenericStringArray<OffsetSize>
+{
+ fn from(v: GenericListArray<OffsetSize>) -> Self {
+ GenericStringArray::<OffsetSize>::from_list(v)
+ }
+}
+
+impl<OffsetSize: OffsetSizeTrait> From<GenericBinaryArray<OffsetSize>>
+ for GenericStringArray<OffsetSize>
+{
+ fn from(v: GenericBinaryArray<OffsetSize>) -> Self {
Review Comment:
This would allow non-utf8 data within a StringArray using safe APIs, which
would break our safety guarantees
--
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]