[GitHub] [carbondata] VenuReddy2103 commented on a change in pull request #3865: [CARBONDATA-3928] Handled the Strings which length is greater than 32000 as a bad record.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] VenuReddy2103 commented on a change in pull request #3865: [CARBONDATA-3928] Handled the Strings which length is greater than 32000 as a bad record.

GitBox

VenuReddy2103 commented on a change in pull request #3865:
URL: https://github.com/apache/carbondata/pull/3865#discussion_r474446976



##########
File path: processing/src/main/java/org/apache/carbondata/processing/loading/converter/impl/RowConverterImpl.java
##########
@@ -130,9 +135,14 @@ public CarbonRow convert(CarbonRow row) throws CarbonDataLoadingException {
       }
       fieldConverters[i].convert(row, logHolder);
       if (!logHolder.isLogged() && logHolder.isBadRecordNotAdded()) {
-        badRecordLogger.addBadRecordsToBuilder(row.getRawData(), logHolder.getReason());
+        String reason = logHolder.getReason();

Review comment:
       If we had set the correct reason with row and column in `NonDictionaryFieldConverterImpl.convert()` instead of setting reason as `STRING_LENGTH_EXCEEDED_MESSAGE`, alone in it, we could have avoided changes in this file(RowConverterImpl) to fixup the the correct reason for `STRING_LENGTH_EXCEEDED_MESSAGE` again here at a common convert for all the columns of row.
   That looks better. right ?




----------------------------------------------------------------
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:
[hidden email]