Github user StevenMPhillips commented on the pull request:

    https://github.com/apache/drill/pull/242#issuecomment-153924675
  
    I think the fix is in the wrong place. We should fix the underlying vector. 
I was able to fix the problem with a small change to 
BaseRepeatedValueVector.BaseRepeatedMutator:
    
    ```java
    @Override
        public void startNewValue(int index) {
          while (offsets.getValueCapacity() <= index) {
            offsets.reAlloc();
          }
          offsets.getMutator().setSafe(index+1, 
offsets.getAccessor().get(index));
          setValueCount(index+1);
        }
    ```
    
    We shouldn't need to make any change in the writer.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to