You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Andy Grove (Jira)" <ji...@apache.org> on 2019/10/09 14:36:00 UTC

[jira] [Resolved] (ARROW-6274) [Rust] [DataFusion] Add support for writing results to CSV

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

Andy Grove resolved ARROW-6274.
-------------------------------
    Fix Version/s: 1.0.0
       Resolution: Fixed

Issue resolved by pull request 5577
[https://github.com/apache/arrow/pull/5577]

> [Rust] [DataFusion] Add support for writing results to CSV
> ----------------------------------------------------------
>
>                 Key: ARROW-6274
>                 URL: https://issues.apache.org/jira/browse/ARROW-6274
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust, Rust - DataFusion
>            Reporter: Andy Grove
>            Assignee: Hengruo Zhang
>            Priority: Major
>              Labels: beginner, pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> There is currently no simple way to result query results to CSV. It would be good to have convenience methods either in ExecutionContext or separate utility methods to enable results to be written in CSV format to stdout or to a file.
> There is sample code in unit tests for this and the approach is to iterate over each row in a batch and then iterate over each column and downcast it to an appropriate type (based on the schema associated with the batch) and then pull out the value for the row.
> See [https://github.com/apache/arrow/blob/master/rust/datafusion/tests/sql.rs#L425-L497] for example code in a test
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)