Github user gvramana commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/111#discussion_r76936740
--- Diff:
processing/src/main/java/org/apache/carbondata/processing/csvreaderstep/UnivocityCsvParser.java
---
@@ -104,6 +108,20 @@ public void initialize() throws IOException {
}
/**
+ * This method will decide the number of coulmns to be parsed for a row
by univocity parser
+ *
+ * @param columnCountInSchema total number of columns in schema
+ * @return
+ */
+ private int getMaxColumnsForParsing(int columnCountInSchema) {
+ int maxNumberOfColumnsForParsing = columnCountInSchema;
+ if (columnCountInSchema < MAX_NUMBER_OF_COLUMNS_FOR_PARSING) {
+ maxNumberOfColumnsForParsing = MAX_NUMBER_OF_COLUMNS_FOR_PARSING;
+ }
+ return maxNumberOfColumnsForParsing;
--- End diff --
Add +10 if schema columns are considered.
---
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.
---