Github user PallaviSingh1992 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/336#discussion_r92158292
  
    --- Diff: 
integration/spark-common/src/main/java/org/apache/carbondata/spark/merger/CarbonCompactionUtil.java
 ---
    @@ -142,20 +142,15 @@ private static void 
groupCorrespodingInfoBasedOnTask(TableBlockInfo info,
        * @return
        */
       public static boolean isCompactionRequiredForTable(String 
metaFolderPath) {
    -    String minorCompactionStatusFile = metaFolderPath + 
CarbonCommonConstants.FILE_SEPARATOR
    -        + CarbonCommonConstants.minorCompactionRequiredFile;
    -
    -    String majorCompactionStatusFile = metaFolderPath + 
CarbonCommonConstants.FILE_SEPARATOR
    -        + CarbonCommonConstants.majorCompactionRequiredFile;
    +    String statusFile = metaFolderPath + 
CarbonCommonConstants.FILE_SEPARATOR;
         try {
    -      if (FileFactory.isFileExist(minorCompactionStatusFile,
    -          FileFactory.getFileType(minorCompactionStatusFile)) || 
FileFactory
    -          .isFileExist(majorCompactionStatusFile,
    -              FileFactory.getFileType(majorCompactionStatusFile))) {
    +      if (FileFactory.isFileExist(statusFile + 
CarbonCommonConstants.minorCompactionRequiredFile,
    +          FileFactory.getFileType(statusFile + 
CarbonCommonConstants.minorCompactionRequiredFile))
    --- End diff --
    
    Used java-code-format-template.xml provided in the dev folder to format the 
code


---
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.
---

Reply via email to