You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2020/08/24 16:31:00 UTC
[jira] [Resolved] (SPARK-32516) path option is treated differently
for 'format("parquet").load(path)' vs. 'parquet(path)'
[ https://issues.apache.org/jira/browse/SPARK-32516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-32516.
---------------------------------
Fix Version/s: 3.1.0
Resolution: Fixed
Issue resolved by pull request 29328
[https://github.com/apache/spark/pull/29328]
> path option is treated differently for 'format("parquet").load(path)' vs. 'parquet(path)'
> -----------------------------------------------------------------------------------------
>
> Key: SPARK-32516
> URL: https://issues.apache.org/jira/browse/SPARK-32516
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.4.6, 3.0.0
> Reporter: Terry Kim
> Assignee: Terry Kim
> Priority: Minor
> Fix For: 3.1.0
>
>
> When data is read, "path" option is treated differently depending on how dataframe is created:
> {code:java}
> scala> Seq(1).toDF.write.mode("overwrite").parquet("/tmp/test")
>
> scala> spark.read.option("path", "/tmp/test").format("parquet").load("/tmp/test").show
> +-----+
> |value|
> +-----+
> | 1|
> +-----+
> scala> spark.read.option("path", "/tmp/test").parquet("/tmp/test").show
> +-----+
> |value|
> +-----+
> | 1|
> | 1|
> +-----+
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org