akashrn5 commented on code in PR #4276: URL: https://github.com/apache/carbondata/pull/4276#discussion_r920728055
########## 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: for time and in this case it will be milliSec only and many places used directly, so use directly only -- 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