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/15 18:50:53 UTC

[GitHub] [arrow-datafusion] izveigor opened a new issue, #6975: Implement `array_slice` function

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

   ### Is your feature request related to a problem or challenge?
   
   ## Summary
   
   | Characteristic        | Description                                                                                                                                                                                                                   |
   | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Function name:        | `array_slice`                                                                                                                                                                                                                 |
   | Aliases:              | `list_slice`, `array[i:j]`                                                                                                                                                                                                    |
   | Original function?:   | No                                                                                                                                                                                                                            |
   | Function Description: | <b>Clickhouse:</b> Returns a slice of the array. <br> <b>DuckDB:</b> Extract a sublist using slice conventions. NULLs are interpreted as the bounds of the LIST. Negative values are accepted. <b> </b>                       |
   | Sources:              | [Concept](https://github.com/apache/arrow-datafusion/discussions/6855) [ClickHouse](https://clickhouse.com/docs/en/sql-reference/functions/array-functions#arrayslice) [DuckDB](https://duckdb.org/docs/sql/functions/nested) |
   
   ## Examples:
   
   ```
   select array_slice([1, 2, 3, 4], 2, 3);
   ----
   [2, 3]
   ```
   
   ```
   select array_slice([1, 2, 3, 4], 1, 1);
   ----
   [1]
   ```
   
   
   ### 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


[GitHub] [arrow-datafusion] alamb closed issue #6975: Implement `array_slice` function

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #6975: Implement `array_slice` function
URL: https://github.com/apache/arrow-datafusion/issues/6975


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

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