You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/24 18:44:01 UTC

[GitHub] [arrow-rs] viirya commented on a diff in pull request #2915: Add `freeze_with_dictionary` API to `MutableArrayData`

viirya commented on code in PR #2915:
URL: https://github.com/apache/arrow-rs/pull/2915#discussion_r1003637937


##########
arrow-data/src/transform/mod.rs:
##########
@@ -637,6 +637,18 @@ impl<'a> MutableArrayData<'a> {
         unsafe { self.data.freeze(self.dictionary).build_unchecked() }
     }
 
+    /// Creates a [ArrayData] from the pushed regions up to this point, consuming `self`,
+    /// with the provided dictionary values `ArrayData`, without any validation
+    ///
+    /// # Safety
+    ///
+    /// As this doesn't validate the provided dictionary `ArrayData` values, the input

Review Comment:
   This is for the values of dictionaries. What MutableArrayData does is simply concatenates the value arrays with another MutableArrayData. The caller must ensure it provides correct concatenated dictionary value array.
   
   



-- 
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-unsubscribe@arrow.apache.org

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