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

Hyukjin Kwon commented on SPARK-17967:
--------------------------------------

That works but IMHO less pretty actually. We can add `option(Array[String])` 
API and internally use CSV format as well (current approach is JSON); however, 
if we use CSV then, we will face another problems like how to handle null, etc. 

> Support for list or other types as an option for datasources
> ------------------------------------------------------------
>
>                 Key: SPARK-17967
>                 URL: https://issues.apache.org/jira/browse/SPARK-17967
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0, 2.0.1
>            Reporter: Hyukjin Kwon
>            Priority: Major
>
> This was discussed in SPARK-17878
> For other datasources, it seems okay with string/long/boolean/double value as 
> an option but it seems it is not enough for the datasource such as CSV. As it 
> is an interface for other external datasources, I guess it'd affect several 
> ones out there.
> I took a look a first but it seems it'd be difficult to support this (need to 
> change a lot).
> One suggestion is support this as a JSON array.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to