Github user kumarvishal09 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/909#discussion_r118451182
--- Diff:
processing/src/main/java/org/apache/carbondata/processing/util/CarbonDataProcessorUtil.java
---
@@ -522,4 +522,16 @@ public static String
checkAndCreateCarbonStoreLocation(String factStoreLocation,
return aggType;
}
+ /**
+ * the method prepares and return the message mentioning the reason of
badrecord
+ *
+ * @param columnName
+ * @param dataType
+ * @return
+ */
+ public static String prepareFailureReason(String columnName, DataType
dataType) {
--- End diff --
Once data loading is done or step which is handling bad record is finished
map will be discarded so it is ok(Only when bad record is enabled). My
intention for this comment was to create this message only once, don't create
this for each bad record. Or you can do lazy creation, when you found first bad
record then create the message, from next time use the same message.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---