Kaifeng Xue created IOTDB-224:
---------------------------------

             Summary: Batch write buffer size is not correctly allocated
                 Key: IOTDB-224
                 URL: https://issues.apache.org/jira/browse/IOTDB-224
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Kaifeng Xue


In RowBatch line 174, we are allocating buffer size for text datatype. But we 
fail to consider we need to put the length of the text firstly and then put the 
text itself. The bugging code as following:
```
case TEXT:
          for (Binary value: (Binary[]) values[i]) {
            valueOccupation += value.getLength();
          }
          break;
```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to