amrishlal commented on code in PR #8978:
URL: https://github.com/apache/hudi/pull/8978#discussion_r1238035397
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/DeleteHoodieTableCommand.scala:
##########
@@ -38,15 +39,14 @@ case class DeleteHoodieTableCommand(dft: DeleteFromTable)
extends HoodieLeafRunn
logInfo(s"Executing 'DELETE FROM' command for $tableId")
val condition = sparkAdapter.extractDeleteCondition(dft)
-
- val targetLogicalPlan = stripMetaFieldAttributes(dft.table)
val filteredPlan = if (condition != null) {
- Filter(condition, targetLogicalPlan)
+ Filter(condition, dft.table)
} else {
- targetLogicalPlan
+ dft.table
}
- val config = buildHoodieDeleteTableConfig(catalogTable, sparkSession)
+ var config = buildHoodieDeleteTableConfig(catalogTable, sparkSession)
Review Comment:
Fixed.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]