JinLiOnline opened a new issue #6346:
URL: https://github.com/apache/incubator-doris/issues/6346


   **Describe the bug**
   select array(1,2,3);
   java.lang.IndexOutOfBoundsException: Index 24 out of bounds for length 17
   
   **To Reproduce**
   select array(1,2,3);
   
   **Reason**
   array.slotSize is 24
   DECIMALV2.slotSize is 16
   
   when step into computeMemLayout(),
   1) PrimitiveType.getMaxSlotSize()  is 16, So the length of **slotsBySize** 
is 16+1=17
   2) slotsBySize.get(d.getType().getSlotSize()).add(d);   // 
slotsBySize.get(24) ==>  out of bounds
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to