brkyvz commented on a change in pull request #26957: [WIP][SPARK-30314] Add
identifier and catalog information to DataSourceV2Relation
URL: https://github.com/apache/spark/pull/26957#discussion_r365410058
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
##########
@@ -554,12 +556,17 @@ final class DataFrameWriter[T] private[sql](ds:
Dataset[T]) {
}
val command = (mode, tableOpt) match {
- case (_, Some(table: V1Table)) =>
+ case (_, Some(_: V1Table)) =>
return saveAsTable(TableIdentifier(ident.name(),
ident.namespace().headOption))
case (SaveMode.Append, Some(table)) =>
checkPartitioningMatchesV2Table(table)
- AppendData.byName(DataSourceV2Relation.create(table), df.logicalPlan,
extraOptions.toMap)
Review comment:
nit: can you create the relation in a separate line as a variable instead of
making AppendData multiline?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]