You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by xuchuanyin <gi...@git.apache.org> on 2019/01/01 14:51:18 UTC

[GitHub] carbondata pull request #3031: [CARBONDATA-3212] Fixed NegativeArraySizeExce...

Github user xuchuanyin commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/3031#discussion_r244639643
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/LocalDictColumnPage.java ---
    @@ -140,6 +140,7 @@ public boolean isLocalDictGeneratedPage() {
         } else {
           actualDataColumnPage.putBytes(rowId, bytes);
         }
    +    pageSize = rowId + 1;
    --- End diff --
    
    So we need to update the pageSize each time we put a row to the page? It is so waste of calculation.
    Please reconsider the implementation.


---