maheshrajus commented on code in PR #4276: URL: https://github.com/apache/carbondata/pull/4276#discussion_r918532569
########## integration/spark/src/main/scala/org/apache/spark/sql/execution/command/partition/CarbonAlterTableDropHivePartitionCommand.scala: ########## @@ -106,6 +108,32 @@ case class CarbonAlterTableDropHivePartitionCommand( ifExists, purge, retainData).run(sparkSession) + val isPartitionDataTrashEnabled = CarbonProperties.getInstance() + .getProperty(CarbonCommonConstants.CARBON_ENABLE_PARTITION_DATA_TRASH, + CarbonCommonConstants.CARBON_ENABLE_PARTITION_DATA_TRASH_DEFAULT).toBoolean + if (isPartitionDataTrashEnabled) { + // move the partition files to trash folder which are dropped + val droppedPartitionNames = partitions.map { partition => + partition.spec.map { specs => specs._1 + "=" + specs._2 } + } + val timeStamp = CarbonUpdateUtil.readCurrentTime(); Review Comment: suppose if want to replace this System.CurrentMillis with some other in future then need to replace in all places. So i just used method call instead of directly using. -- 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