[
https://issues.apache.org/jira/browse/DRILL-7746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17124014#comment-17124014
]
ASF GitHub Bot commented on DRILL-7746:
---------------------------------------
cgivre opened a new pull request #2085:
URL: https://github.com/apache/drill/pull/2085
# [DRILL-7746](https://issues.apache.org/jira/browse/DRILL-7746): Add REST
API Ability to Accept CSV Input
## Description
This test enables the REST plugin to query APIs that return CSV as well as
JSON.
## Documentation
This adds an additional configuration option for each connection:
`inputType` which defaults to JSON. If the API outputs `csv` then user should
set `inputType` to `csv`. The plugin requires that the data be in CSV format
with the first line being the column headers.
This PR uses the same library as Drill currently does for CSV parsing,
however it was not possible to use the `CompliantTextReader` without extensive
modifications to that file. This PR implements a simple CSV reader using the
same underlying parser.
## Testing
Added unit test for CSV input. Ran tests from CLI as well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Add REST API Ability to Accept CSV Input
> ----------------------------------------
>
> Key: DRILL-7746
> URL: https://issues.apache.org/jira/browse/DRILL-7746
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.18.0
> Reporter: Charles Givre
> Assignee: Charles Givre
> Priority: Major
> Fix For: 1.18.0
>
>
> This small PR adds the ability for the REST Storage Plugin to accept CSV as
> input in addition to JSON.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)