[
https://issues.apache.org/jira/browse/ARROW-15206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kouhei Sutou updated ARROW-15206:
---------------------------------
Description:
There is ability to do this in C++, but not in Ruby
{code:java}
schema = Arrow::Schema.new(a: :int64, b: :double)
Arrow::Table.load(URI('file:///tmp/example.csv'), format: :csv, schema:
schema){code}
This should also work when loading multiple files from folder
was:
There is ability to do this in C++, but not in Ruby
{code:java}
schema = Arrow::Schema.new(a: :int64, b: :double)
Arrow::Table.load('example.csv', format: :csv, schema: schema){code}
This should also work when loading multiple files from folder
> [Ruby] Allow to pass schema when loading table from file
> --------------------------------------------------------
>
> Key: ARROW-15206
> URL: https://issues.apache.org/jira/browse/ARROW-15206
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Ruby
> Reporter: Kanstantsin Ilchanka
> Priority: Minor
>
> There is ability to do this in C++, but not in Ruby
> {code:java}
> schema = Arrow::Schema.new(a: :int64, b: :double)
> Arrow::Table.load(URI('file:///tmp/example.csv'), format: :csv, schema:
> schema){code}
> This should also work when loading multiple files from folder
--
This message was sent by Atlassian Jira
(v8.20.1#820001)