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

Maxim Gekk commented on SPARK-17967:
------------------------------------

What about to preserve existing API as is, and pass multiple values as CSV 
string? For example:
{code:scala}
spark.read.format("csv")
  .option("nullValue", "2012, Tesla, null"))
  ...
{code}
or
{code:sql}
CREATE TEMPORARY TABLE tableA USING csv
OPTIONS (sep '|,-', ...)
{code}

> 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