rdblue commented on a change in pull request #25115: [SPARK-28351][SQL] Support
DELETE in DataSource V2
URL: https://github.com/apache/spark/pull/25115#discussion_r313064739
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
##########
@@ -309,6 +322,15 @@ case class DataSourceResolution(
orCreate = replace.orCreate)
}
+ private def convertDeleteFrom(
+ catalog: TableCatalog,
+ identifier: Identifier,
+ delete: DeleteFromStatement): DeleteFromTable = {
+ val relation = UnresolvedRelation(delete.tableName)
+ val aliased = delete.tableAlias.map { SubqueryAlias(_, relation)
}.getOrElse(relation)
Review comment:
Nit: one-line map expressions should use `(...)` instead of `{...}`, like
this:
```scala
delete.tableAlias.map(SubqueryAlias(_, relation)).getOrElse(relation)
```
----------------------------------------------------------------
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]