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-18760) Provide consistent format output for all file formats
Date Thu, 15 Dec 2016 05:05:59 GMT

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

Reynold Xin updated SPARK-18760:
--------------------------------
    Fix Version/s:     (was: 2.1.1)
                       (was: 2.2.0)
                   2.1.0

> Provide consistent format output for all file formats
> -----------------------------------------------------
>
>                 Key: SPARK-18760
>                 URL: https://issues.apache.org/jira/browse/SPARK-18760
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>             Fix For: 2.1.0
>
>
> We currently rely on FileFormat implementations to override toString in order to get
a proper explain output. It'd be better to just depend on shortName for those.
> Before:
> {noformat}
> scala> spark.read.text("test.text").explain()
> == Physical Plan ==
> *FileScan text [value#15] Batched: false, Format: org.apache.spark.sql.execution.datasources.text.TextFileFormat@xyz,
Location: InMemoryFileIndex[file:/scratch/rxin/spark/test.text], PartitionFilters: [], PushedFilters:
[], ReadSchema: struct<value:string>
> {noformat}
> After:
> {noformat}
> scala> spark.read.text("test.text").explain()
> == Physical Plan ==
> *FileScan text [value#15] Batched: false, Format: text, Location: InMemoryFileIndex[file:/scratch/rxin/spark/test.text],
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<value:string>
> {noformat}



--
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