[ 
https://issues.apache.org/jira/browse/SPARK-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14056967#comment-14056967
 ] 

Matthew Farrellee commented on SPARK-2360:
------------------------------------------

what is the interface you're proposing?

i find the simplicity of R's read.csv to be a reasonable starting point. if 
it's found to not satisfy all cases, it should be possible to extend in a 
backward compatible way.

fyi, i'm constantly running into csv files with the format:

{code}
header0,header1,header2
Copyright notice
[blankline]*
data00,data01,data02
data10,data11,data12
{code}

> CSV import to SchemaRDDs
> ------------------------
>
>                 Key: SPARK-2360
>                 URL: https://issues.apache.org/jira/browse/SPARK-2360
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Michael Armbrust
>            Assignee: Hossein Falaki
>            Priority: Minor
>
> I think the first step it to design the interface that we want to present to 
> users.  Mostly this is defining options when importing.  Off the top of my 
> head:
> - What is the separator?
> - Provide column names or infer them from the first row.
> - how to handle multiple files with possibly different schemas
> - do we have a method to let users specify the datatypes of the columns or 
> are they just strings?
> - what types of quoting / escaping do we want to support?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to