You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Todd Farmer (Jira)" <ji...@apache.org> on 2022/07/12 14:05:02 UTC

[jira] [Assigned] (ARROW-10587) [Ruby] Table#initialize examples are out of date

     [ https://issues.apache.org/jira/browse/ARROW-10587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Farmer reassigned ARROW-10587:
-----------------------------------

    Assignee:     (was: fonsan)

This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.

> [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
>            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.20.10#820010)