Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10587

[Ruby] Table#initialize examples are out of date

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Ruby
    • None

    Description

      https://www.rubydoc.info/gems/red-arrow/Arrow/Table

      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])
      
      NoMethodError (undefined method `schema' for #<Arrow::Field:0x7f88cc971e48 ptr=0x7f88cf0266e0 count: uint32>)
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fonsan fonsan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: