carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1273: [CARBONDATA-1400] Fix bug of array column out...
Date Tue, 12 Sep 2017 12:19:24 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1273#discussion_r138330052
  
    --- 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 --
    
    This is for backward compatible, old code use 4 bytes to store length


---

Mime
View raw message