spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-15250) Remove deprecated json API in DataFrameReader
Date Wed, 11 May 2016 05:22:12 GMT

     [ https://issues.apache.org/jira/browse/SPARK-15250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Reynold Xin updated SPARK-15250:
--------------------------------
    Description: 
I see json() API in DataFrameReader should be removed as below:

{code}
  // TODO: Remove this one in Spark 2.0.
  def json(path: String): DataFrame = format("json").load(path)
{code}

It seems this is because another {{json()}} API below covers the above

{code}
 def json(paths: String*): DataFrame = format("json").load(paths : _*)
{code}



  was:
I see {{json() }}API in {{DataFrameReader}} should be removed as below:

{code}
  // TODO: Remove this one in Spark 2.0.
  def json(path: String): DataFrame = format("json").load(path)
{code}

It seems this is because another {{json()}} API below covers the above

{code}
 def json(paths: String*): DataFrame = format("json").load(paths : _*)
{code}




> Remove deprecated json API in DataFrameReader
> ---------------------------------------------
>
>                 Key: SPARK-15250
>                 URL: https://issues.apache.org/jira/browse/SPARK-15250
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> I see json() API in DataFrameReader should be removed as below:
> {code}
>   // TODO: Remove this one in Spark 2.0.
>   def json(path: String): DataFrame = format("json").load(path)
> {code}
> It seems this is because another {{json()}} API below covers the above
> {code}
>  def json(paths: String*): DataFrame = format("json").load(paths : _*)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message