You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "izveigor (via GitHub)" <gi...@apache.org> on 2023/07/12 19:05:34 UTC

[GitHub] [arrow-datafusion] izveigor opened a new issue, #6935: Reading array elements

izveigor opened a new issue, #6935:
URL: https://github.com/apache/arrow-datafusion/issues/6935

   ### Is your feature request related to a problem or challenge?
   
   Any element of the array must be read. There are two ways to take elements from an array: through functions and through indices.
   Functions:
   Let's introduce two functions for reading one element and element range:
   - [ ] `array_element(array, i)` (read one element);
   - [ ] `array_slice(array, i, j)` (read element range);
   
   Index improvements:
   - [ ] additional key for slices (`array[i:j]`);
   - [ ] multiple index support (`array[0][0][0][0]`)
   - [ ] negative indices (`array[-1]`);
   - [ ] support for names indexes (`array[a]`);
   - [ ] arithmetic operations within an index (`array[1 + 2:3 + 4]`);
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org