zzcclp commented on a change in pull request #3357: [CARBONDATA-3491] Return updated/deleted rows count when execute update/delete sql
URL:
https://github.com/apache/carbondata/pull/3357#discussion_r316656239
##########
File path: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/mutation/CarbonProjectForUpdateCommand.scala
##########
@@ -135,7 +142,7 @@ private[sql] case class CarbonProjectForUpdateCommand(
CarbonUpdateUtil.cleanUpDeltaFiles(carbonTable, false)
// do delete operation.
- val segmentsToBeDeleted = DeleteExecution.deleteDeltaExecution(
+ val (segmentsToBeDeleted, updatedRowCountTemp) = DeleteExecution.deleteDeltaExecution(
Review comment:
It can't assign multiple returned values to a variable, and 'deletedRowCount ' will be returned outside this if branch.
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services