[ 
https://issues.apache.org/jira/browse/FLINK-32260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hanyu Zheng updated FLINK-32260:
--------------------------------
    Description: 
slice(x, start, length) - Subsets array x starting from index start (array 
indices start at 1, or starting from the end if start is negative) with the 
specified length.

Examples:
{code:java}
> SELECT slice(array(1, 2, 3, 4), 2, 2);
 [2,3]
> SELECT slice(array(1, 2, 3, 4), -2, 2);
 [3,4]{code}
spark:https://spark.apache.org/docs/latest/api/sql/index.html#slice

  was:
slice(x, start, length) - Subsets array x starting from index start (array 
indices start at 1, or starting from the end if start is negative) with the 
specified length.

Examples:
{code:java}
> SELECT slice(array(1, 2, 3, 4), 2, 2);
 [2,3]
> SELECT slice(array(1, 2, 3, 4), -2, 2);
 [3,4]{code}
 


> Add SLICE support in SQL & Table API
> ------------------------------------
>
>                 Key: FLINK-32260
>                 URL: https://issues.apache.org/jira/browse/FLINK-32260
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>    Affects Versions: 1.18.0
>            Reporter: Bonnie Varghese
>            Assignee: Hanyu Zheng
>            Priority: Major
>             Fix For: 1.18.0
>
>
> slice(x, start, length) - Subsets array x starting from index start (array 
> indices start at 1, or starting from the end if start is negative) with the 
> specified length.
> Examples:
> {code:java}
> > SELECT slice(array(1, 2, 3, 4), 2, 2);
>  [2,3]
> > SELECT slice(array(1, 2, 3, 4), -2, 2);
>  [3,4]{code}
> spark:https://spark.apache.org/docs/latest/api/sql/index.html#slice



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to