cloud-fan commented on a change in pull request #23824: [SPARK-26913][SQL] New
data source V2 API: SupportsDirectWrite
URL: https://github.com/apache/spark/pull/23824#discussion_r257672083
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
##########
@@ -264,6 +264,9 @@ final class DataFrameWriter[T] private[sql](ds:
Dataset[T]) {
val options = sessionOptions ++ extraOptions + checkFilesExistsOption
val dsOptions = new DataSourceOptions(options.asJava)
provider.getTable(dsOptions) match {
+ case table: SupportsDirectWrite =>
Review comment:
this should work without save mode. That said, we should add a new flag in
`AppendData` and other operators to indicate if it needs schema validation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]