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

[Ruby] Arrow::Table.load with headers=true leads to exception in Arrow 0.15

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.15.0
    • Fix Version/s: 1.0.0, 0.15.1
    • Component/s: Ruby
    • Environment:
      Ubuntu 18.04, Debian Stretch

      Description

      ```

      Error: undefined method `n_header_rows=' for #<Arrow::CSVReadOptions:0x560112464880 ptr=0x560117ce10f0>

      ```

      It appears that 0.15 has changed the name for this option to `n_skip_rows`

       

      ```

      (byebug) options
      #<Arrow::CSVReadOptions:0x55904e39de90 ptr=0x55904f2db200>(byebug) (options.methods - Object.new.methods).sort
      [:add_column_name, :add_column_type, :add_column_type_raw, :add_false_value, :add_null_value, :add_schema, :add_true_value, :allow_newlines_in_values=, :allow_newlines_in_values?, :allow_null_strings=, :allow_null_strings?, :bind_property, :block_size, :block_size=, :check_utf8=, :check_utf8?, :column_names, :column_names=, :column_types, :delimiter, :delimiter=, :destroyed?, :double_quoted=, :double_quoted?, :escape_character, :escape_character=, :escaped=, :escaped?, :false_values, :false_values=, :floating?, :freeze_notify, :generate_column_names=, :generate_column_names?, :get_property, :gtype, :ignore_empty_lines=, :ignore_empty_lines?, :n_skip_rows, :n_skip_rows=, :notify, :null_values, :null_values=, :parent_instance, :quote_character, :quote_character=, :quoted=, :quoted?, :ref_count, :set_allow_newlines_in_values, :set_allow_null_strings, :set_block_size, :set_check_utf8, :set_column_names, :set_delimiter, :set_double_quoted, :set_escape_character, :set_escaped, :set_false_values, :set_generate_column_names, :set_ignore_empty_lines, :set_n_skip_rows, :set_null_values, :set_property, :set_quote_character, :set_quoted, :set_true_values, :set_use_threads, :signal_connect, :signal_connect_after, :signal_emit, :signal_emit_stop, :signal_handler_block, :signal_handler_disconnect, :signal_handler_is_connected?, :signal_handler_unblock, :signal_has_handler_pending?, :thaw_notify, :true_values, :true_values=, :type_name, :unref, :use_threads=, :use_threads?]

      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cobbr2 Rick Cobb
                Reporter:
                cobbr2 Rick Cobb
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m