Github user sujith71955 commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/336#discussion_r90511807 --- Diff: integration/spark/src/main/java/org/apache/carbondata/integration/spark/merger/CarbonCompactionUtil.java --- @@ -198,21 +183,16 @@ public static CompactionType determineCompactionType(String metaFolderPath) { * @return */ public static boolean deleteCompactionRequiredFile(String metaFolderPath, - CompactionType compactionType) { - String compactionRequiredFile; - if (compactionType.equals(CompactionType.MINOR_COMPACTION)) { - compactionRequiredFile = metaFolderPath + CarbonCommonConstants.FILE_SEPARATOR - + CarbonCommonConstants.minorCompactionRequiredFile; - } else { - compactionRequiredFile = metaFolderPath + CarbonCommonConstants.FILE_SEPARATOR - + CarbonCommonConstants.majorCompactionRequiredFile; - } + CompactionType compactionType) { + String file = metaFolderPath + CarbonCommonConstants.FILE_SEPARATOR; + String compactionRequiredFile = compactionType.equals(CompactionType.MINOR_COMPACTION) ? --- End diff -- Enum comparison better to use ==
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---