qiuchenjian commented on a change in pull request #3561: [HOTFIX] Fix INSERT 
STAGE footer read error
URL: https://github.com/apache/carbondata/pull/3561#discussion_r364137100
 
 

 ##########
 File path: 
core/src/main/java/org/apache/carbondata/core/util/path/CarbonTablePath.java
 ##########
 @@ -714,4 +714,16 @@ public static String generateBadRecordsPath(String 
badLogStoreLocation, String s
           CarbonCommonConstants.FILE_SEPARATOR + taskNo;
     }
   }
+
+  /**
+   * Return the parent path of the input file
+   */
+  public static String getParentPath(String dataFilePath) {
+    int endIndex = 
dataFilePath.lastIndexOf(CarbonCommonConstants.FILE_SEPARATOR);
 
 Review comment:
   CarbonCommonConstants.FILE_SEPARATOR is the last character of dataFilePath, 
such as '/user/warehouse/carbon.store/www/'

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

Reply via email to