Indhumathi27 commented on code in PR #4276: URL: https://github.com/apache/carbondata/pull/4276#discussion_r909214462
########## integration/spark/src/main/scala/org/apache/spark/sql/execution/command/partition/CarbonAlterTableDropHivePartitionCommand.scala: ########## @@ -105,6 +106,25 @@ case class CarbonAlterTableDropHivePartitionCommand( ifExists, purge, retainData).run(sparkSession) + + // move the partition files to trash folder which are dropped + val droppedPartitionNames = partitions.map { partition => + partition.spec.map { specs => specs._1 + "=" + specs._2} + } + val droppedPartitionName = droppedPartitionNames.head.mkString("/") Review Comment: i think, we should move the partition stale folders under respective trash partition folders. here, you are taking the first dropped partition folder to move other partitions data also. -- 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: dev-unsubscr...@carbondata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org