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

    https://github.com/apache/drill/pull/840#discussion_r122533121
  
    --- Diff: exec/vector/src/main/codegen/templates/VariableLengthVectors.java 
---
    @@ -548,6 +567,23 @@ public void setSafe(int index, ByteBuffer bytes, int 
start, int length) {
           }
         }
     
    +    public void setScalar(int index, DrillBuf bytes, int start, int 
length) throws VectorOverflowException {
    +      assert index >= 0;
    +
    +      if (index >= MAX_ROW_COUNT) {
    +        throw new VectorOverflowException();
    +      }
    +      int currentOffset = offsetVector.getAccessor().get(index);
    +      final int newSize = currentOffset + length;
    +      if (newSize > MAX_BUFFER_SIZE) {
    +        throw new VectorOverflowException();
    +      }
    +      while (! data.setBytesBounded(currentOffset, bytes, start, length)) {
    --- End diff --
    
    indentation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to