kou commented on code in PR #48643:
URL: https://github.com/apache/arrow/pull/48643#discussion_r2646516511
##########
ruby/red-arrow-format/lib/arrow-format/array.rb:
##########
@@ -306,6 +306,20 @@ def to_a
end
end
+ class DecimalArray < FixedSizeBinaryArray
+ def to_a
+ byte_width = @type.byte_width
+ values = 0.step(@size * byte_width - 1, byte_width).collect do |offset|
+ # TODO: How to represent in Ruby?
+ @values_buffer.get_string(offset, byte_width)
Review Comment:
I'll make this PR ready when I solve this TODO.
--
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]