You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/08/02 21:14:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17169638#comment-17169638 ]
Apache Spark commented on SPARK-32516:
--------------------------------------
User 'imback82' has created a pull request for this issue:
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
> Priority: Minor
>
> 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