[jira] [Updated] (FLINK-27891) Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API

2022-06-03 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot updated FLINK-27891:
---
Labels: pull-request-available  (was: )

> Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API
> ---
>
> Key: FLINK-27891
> URL: https://issues.apache.org/jira/browse/FLINK-27891
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Sergey Nuyanzin
>Priority: Major
>  Labels: pull-request-available
>
> {{ARRAY_APPEND}} - adds element to the end of the array and returns the 
> resulting array
> {{ARRAY_PREPEND}} - adds element to the beginning of the array and returns 
> the resulting array
> Syntax:
> {code:sql}
> ARRAY_APPEND(  ,  );
> ARRAY_PREPEND(  ,  );
> {code}
> Arguments:
> array: An ARRAY to to add a new element.
> new_element: A new element.
> Returns:
> An array. If array is NULL, the result is NULL.
> Examples:
> {code:sql}
> SELECT array_append(array[1, 2, 3], 4);
> -- array[1, 2, 3, 4]
> select array_append(cast(null as int array), 2);
> -- null
> SELECT array_prepend(array[1, 2, 3], 4);
> -- array[4, 1, 2, 3]
> SELECT array_prepend(array[1, 2, 3], null);
> -- array[null, 1, 2, 3]
> {code}
> See more:
> {{ARRAY_APPEND}}
>Snowflake 
> https://docs.snowflake.com/en/sql-reference/functions/array_append.html
>PostgreSQL 
> https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE
> {{ARRAY_PREPEND}}
>Snowflake 
> https://docs.snowflake.com/en/sql-reference/functions/array_prepend.html
>PostgreSQL 
> https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE



--
This message was sent by Atlassian Jira
(v8.20.7#820007)


[jira] [Updated] (FLINK-27891) Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API

2022-07-07 Thread Flink Jira Bot (Jira)


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

Flink Jira Bot updated FLINK-27891:
---
Labels: pull-request-available stale-assigned  (was: pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issue is assigned but has not 
received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a 
comment updating the community on your progress.  If this issue is waiting on 
feedback, please consider this a reminder to the committer/reviewer. Flink is a 
very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone 
else may work on it.


> Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API
> ---
>
> Key: FLINK-27891
> URL: https://issues.apache.org/jira/browse/FLINK-27891
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Sergey Nuyanzin
>Assignee: Sergey Nuyanzin
>Priority: Major
>  Labels: pull-request-available, stale-assigned
>
> {{ARRAY_APPEND}} - adds element to the end of the array and returns the 
> resulting array
> {{ARRAY_PREPEND}} - adds element to the beginning of the array and returns 
> the resulting array
> Syntax:
> {code:sql}
> ARRAY_APPEND(  ,  );
> ARRAY_PREPEND(  ,  );
> {code}
> Arguments:
> array: An ARRAY to to add a new element.
> new_element: A new element.
> Returns:
> An array. If array is NULL, the result is NULL.
> Examples:
> {code:sql}
> SELECT array_append(array[1, 2, 3], 4);
> -- array[1, 2, 3, 4]
> select array_append(cast(null as int array), 2);
> -- null
> SELECT array_prepend(array[1, 2, 3], 4);
> -- array[4, 1, 2, 3]
> SELECT array_prepend(array[1, 2, 3], null);
> -- array[null, 1, 2, 3]
> {code}
> See more:
> {{ARRAY_APPEND}}
>Snowflake 
> https://docs.snowflake.com/en/sql-reference/functions/array_append.html
>PostgreSQL 
> https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE
> {{ARRAY_PREPEND}}
>Snowflake 
> https://docs.snowflake.com/en/sql-reference/functions/array_prepend.html
>PostgreSQL 
> https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE



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


[jira] [Updated] (FLINK-27891) Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API

2023-03-29 Thread Sergey Nuyanzin (Jira)


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

Sergey Nuyanzin updated FLINK-27891:

Description: 
{{ARRAY_APPEND}} - adds element to the end of the array and returns the 
resulting array
{{ARRAY_PREPEND}} - adds element to the beginning of the array and returns the 
resulting array

Syntax:
{code:sql}
ARRAY_APPEND(  ,  );
ARRAY_PREPEND(  ,  );
{code}
Arguments:

array: An ARRAY to to add a new element.

new_element: A new element.

Returns:

An array. If array is NULL, the result is NULL.

Examples:
{code:sql}
SELECT array_append(array[1, 2, 3], 4);
-- array[1, 2, 3, 4]
select array_append(cast(null as int array), 2);
-- null
SELECT array_prepend(4, array[1, 2, 3]);
-- array[4, 1, 2, 3]
SELECT array_prepend(null, array[1, 2, 3]);
-- array[null, 1, 2, 3]
{code}
See more:
{{ARRAY_APPEND}}
Snowflake 
[https://docs.snowflake.com/en/sql-reference/functions/array_append.html]
PostgreSQL 
[https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE]
{{ARRAY_PREPEND}}
Snowflake 
[https://docs.snowflake.com/en/sql-reference/functions/array_prepend.html]
PostgreSQL 
[https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE]

  was:
{{ARRAY_APPEND}} - adds element to the end of the array and returns the 
resulting array
{{ARRAY_PREPEND}} - adds element to the beginning of the array and returns the 
resulting array

Syntax:

{code:sql}
ARRAY_APPEND(  ,  );
ARRAY_PREPEND(  ,  );
{code}

Arguments:

array: An ARRAY to to add a new element.

new_element: A new element.

Returns:

An array. If array is NULL, the result is NULL.

Examples:
{code:sql}
SELECT array_append(array[1, 2, 3], 4);
-- array[1, 2, 3, 4]
select array_append(cast(null as int array), 2);
-- null
SELECT array_prepend(array[1, 2, 3], 4);
-- array[4, 1, 2, 3]
SELECT array_prepend(array[1, 2, 3], null);
-- array[null, 1, 2, 3]
{code}

See more:
{{ARRAY_APPEND}}
   Snowflake 
https://docs.snowflake.com/en/sql-reference/functions/array_append.html
   PostgreSQL 
https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE
{{ARRAY_PREPEND}}
   Snowflake 
https://docs.snowflake.com/en/sql-reference/functions/array_prepend.html
   PostgreSQL 
https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE


> Add ARRAY_APPEND and ARRAY_PREPEND supported in SQL & Table API
> ---
>
> Key: FLINK-27891
> URL: https://issues.apache.org/jira/browse/FLINK-27891
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Sergey Nuyanzin
>Assignee: Sergey Nuyanzin
>Priority: Major
>  Labels: pull-request-available, stale-assigned
>
> {{ARRAY_APPEND}} - adds element to the end of the array and returns the 
> resulting array
> {{ARRAY_PREPEND}} - adds element to the beginning of the array and returns 
> the resulting array
> Syntax:
> {code:sql}
> ARRAY_APPEND(  ,  );
> ARRAY_PREPEND(  ,  );
> {code}
> Arguments:
> array: An ARRAY to to add a new element.
> new_element: A new element.
> Returns:
> An array. If array is NULL, the result is NULL.
> Examples:
> {code:sql}
> SELECT array_append(array[1, 2, 3], 4);
> -- array[1, 2, 3, 4]
> select array_append(cast(null as int array), 2);
> -- null
> SELECT array_prepend(4, array[1, 2, 3]);
> -- array[4, 1, 2, 3]
> SELECT array_prepend(null, array[1, 2, 3]);
> -- array[null, 1, 2, 3]
> {code}
> See more:
> {{ARRAY_APPEND}}
> Snowflake 
> [https://docs.snowflake.com/en/sql-reference/functions/array_append.html]
> PostgreSQL 
> [https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE]
> {{ARRAY_PREPEND}}
> Snowflake 
> [https://docs.snowflake.com/en/sql-reference/functions/array_prepend.html]
> PostgreSQL 
> [https://www.postgresql.org/docs/14/functions-array.html#ARRAY-FUNCTIONS-TABLE]



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