ZhangHuiGui commented on issue #41453:
URL: https://github.com/apache/arrow/issues/41453#issuecomment-2141529731

   Hi, @felipecrv I'm working on this improvement recently and find there is an 
important issue that need to be discussed:
   
   When we process arrays case by case, how to determine the offset of the 
selected-rows of the current case in the output array.
   
   For example, we have 2 cases and 3 arrays:
   ```shell
   case_when({cond1, cond2}, array1, array2, array3);
   ```
   
   We use the bitmap of cas1's cond to get the selected-rows of array1, if we 
want to fill these rows into the output list-vew array in an unordered way 
directly, we need to know which offsets of the output-array the selected-rows 
of array1 should be filled into. 
   However, each list-item of array1 and array2 may have different sizes, so 
the offset of the list-item when we fill it into the output-array in an 
unordered way cannot be determined.
   
   Is there a more efficient way to solve this problem?


-- 
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]

Reply via email to