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/07/11 09:20:32 UTC

[GitHub] [arrow-rs] liukun4515 commented on a diff in pull request #2000: Add `Decimal256Builder` and `Decimal256Array`; Decimal arrays now implement `BasicDecimalArray` trait

liukun4515 commented on code in PR #2000:
URL: https://github.com/apache/arrow-rs/pull/2000#discussion_r917719589


##########
arrow/src/array/builder/decimal_builder.rs:
##########
@@ -42,8 +44,18 @@ pub struct DecimalBuilder {
     value_validation: bool,
 }
 
+/// Array Builder for [`Decimal256Array`]
+///
+/// See [`Decimal256Array`] for example.
+#[derive(Debug)]
+pub struct Decimal256Builder {
+    builder: FixedSizeListBuilder<UInt8Builder>,

Review Comment:
   I also confused about that we use the the `FixedSizeListBuilder` to store decimal data in the decimal builder.



-- 
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