drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [drill] cgivre opened a new pull request #2085: DRILL-7746: Add REST API Ability to Accept CSV Input
Date Tue, 02 Jun 2020 16:31:33 GMT

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:
users@infra.apache.org



Mime
View raw message