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

[Ruby] Allow to pass schema when loading table from file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 11.0.0
    • Ruby

    Description

      There is ability to do this in C++, but not in Ruby

      schema = Arrow::Schema.new(a: :int64, b: :double)
      Arrow::Table.load(URI('file:///tmp/example.csv'), format: :csv, schema: schema)

      This should also work when loading multiple files from folder

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              simpl1g Kanstantsin Ilchanka
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1h
                  1h