Skip to content

Commit

Permalink
[CARBONDATA-3212] Fixed NegativeArraySizeException while querying in …
Browse files Browse the repository at this point in the history
…specific scenario

Problem:In Local Dictionary, page size was not getting updated for complex children columns. So during fallback,
new page was being created with less records giving NegativeArraySizeException while querying data.

Solution:Updated the page size in Local Dictionary.

This closes#3031
  • Loading branch information
shivamasn authored and kumarvishal09 committed Jan 3, 2019
1 parent f8697b1 commit deb08c3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -140,6 +140,9 @@ public boolean isLocalDictGeneratedPage() {
} else {
actualDataColumnPage.putBytes(rowId, bytes);
}
if (pageSize <= rowId) {
pageSize = rowId + 1;
}
}

@Override public void disableLocalDictEncoding() {
Expand Down

0 comments on commit deb08c3

Please sign in to comment.