You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by ravipesala <gi...@git.apache.org> on 2017/09/12 06:33:46 UTC

[GitHub] carbondata pull request #1273: [CARBONDATA-1400] Fix bug of array column out...

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

    https://github.com/apache/carbondata/pull/1273#discussion_r138262250
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/page/SafeVarLengthColumnPage.java ---
    @@ -67,6 +70,17 @@ public void setByteArrayPage(byte[][] byteArray) {
       }
     
       @Override
    +  public byte[] getLVFlattenedBytePage() throws IOException {
    +    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    +    DataOutputStream out = new DataOutputStream(stream);
    +    for (byte[] byteArrayDatum : byteArrayData) {
    +      out.writeInt(byteArrayDatum.length);
    --- End diff --
    
    can' t we use short here?


---