[
https://issues.apache.org/jira/browse/SPARK-25700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon updated SPARK-25700:
---------------------------------
Issue Type: Sub-task (was: Bug)
Parent: SPARK-22386
> Avoid to create a readsupport at write path in Data Source V2
> -------------------------------------------------------------
>
> Key: SPARK-25700
> URL: https://issues.apache.org/jira/browse/SPARK-25700
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 2.4.0
> Reporter: Hyukjin Kwon
> Priority: Critical
>
> https://github.com/apache/spark/commit/5fef6e3513d6023a837c427d183006d153c7102b
> introduced append mode support in Datasource V2.
> The problem is, write path ended up
> https://github.com/apache/spark/blob/e06da95cd9423f55cdb154a2778b0bddf7be984c/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala#L249
> Retrieving the physical schema of the underlying storage is potentially
> expensive. Actually even worse: it looks odd that write path requires read
> side's schema.
> This is a regression comparing to Spark 2.3.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]