qiuchenjian commented on a change in pull request #3091: [CARBONDATA-2447] Block update operation on range/list/hash partition table
URL:
https://github.com/apache/carbondata/pull/3091#discussion_r251272345
##########
File path: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/mutation/CarbonProjectForUpdateCommand.scala
##########
@@ -60,6 +60,13 @@ private[sql] case class CarbonProjectForUpdateCommand(
return Seq.empty
}
val carbonTable = CarbonEnv.getCarbonTable(databaseNameOp, tableName)(sparkSession)
+ if (carbonTable.getPartitionInfo != null &&
+ (carbonTable.getPartitionInfo.getPartitionType == PartitionType.RANGE ||
+ carbonTable.getPartitionInfo.getPartitionType == PartitionType.HASH ||
+ carbonTable.getPartitionInfo.getPartitionType == PartitionType.LIST)) {
+ throw new UnsupportedOperationException("Unsupported operation on range ," +
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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