jackylk commented on a change in pull request #3561: [HOTFIX] Fix INSERT STAGE
footer read error
URL: https://github.com/apache/carbondata/pull/3561#discussion_r364532478
##########
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:
the input is a file path like
`/user/warehouse/carbon.store/www/file.carbondata`, so this function will
return `/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