[ https://issues.apache.org/jira/browse/ARROW-10587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17232208#comment-17232208 ]
Kouhei Sutou commented on ARROW-10587: -------------------------------------- Thanks for confirming this. Do you want to update the document? Or do you want me to work on this? > [Ruby] Table#initialize examples are out of date > ------------------------------------------------ > > Key: ARROW-10587 > URL: https://issues.apache.org/jira/browse/ARROW-10587 > Project: Apache Arrow > Issue Type: Bug > Components: Ruby > Reporter: fonsan > Assignee: Kouhei Sutou > Priority: Minor > > https://www.rubydoc.info/gems/red-arrow/Arrow/Table > {code:ruby} > count_field = Arrow::Field.new("count", :uint32) > count_array = Arrow::UInt32Array.new([0, 2, nil, 4]) > count_column = Arrow::Column.new(count_field, count_array) > visible_field = Arrow::Field.new("visible", :boolean) > visible_array = Arrow::BooleanArray.new([true, nil, nil, false]) > visible_column = Arrow::Column.new(visible_field, visible_array) > Arrow::Table.new(Arrow::Schema.new([count_field, visible_field]), > [count_column, visible_column]) > {code} > {noformat} > NoMethodError (undefined method `schema' for #<Arrow::Field:0x7f88cc971e48 > ptr=0x7f88cf0266e0 count: uint32>) > {noformat} > I would write tests but I presume that the interface has changed and the docs > have been left behind. Please advise on how I could help out. -- This message was sent by Atlassian Jira (v8.3.4#803005)