akashrn5 commented on a change in pull request #3651: [CARBONDATA-3733] Fix
Incorrect query results on mv with limit
URL: https://github.com/apache/carbondata/pull/3651#discussion_r387008135
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonAlterTableCompactionCommand.scala
##########
@@ -220,17 +219,23 @@ case class CarbonAlterTableCompactionCommand(
val LOGGER = LogServiceFactory.getLogService(this.getClass.getName)
val compactionType =
CompactionType.valueOf(alterTableModel.compactionType.toUpperCase)
val compactionSize =
CarbonDataMergerUtil.getCompactionSize(compactionType, carbonLoadModel)
+ val carbonTable = carbonLoadModel.getCarbonDataLoadSchema.getCarbonTable
if (CompactionType.IUD_UPDDEL_DELTA == compactionType) {
if (alterTableModel.segmentUpdateStatusManager.isDefined) {
carbonLoadModel.setSegmentUpdateStatusManager(
alterTableModel.segmentUpdateStatusManager.get)
carbonLoadModel.setLoadMetadataDetails(
alterTableModel.segmentUpdateStatusManager.get.getLoadMetadataDetails.toList.asJava)
+ } else {
+ // segmentUpdateStatusManager will not be defined, in case of IUD
compaction on materialised
Review comment:
```suggestion
// segmentUpdateStatusManager will not be defined in case of IUD
compaction on materialized
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services