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

Ramin Gharib reassigned FLINK-41341:
------------------------------------

    Assignee: Ramin Gharib

> Add VARIANT_ARRAY_APPEND and TRY_VARIANT_ARRAY_APPEND
> -----------------------------------------------------
>
>                 Key: FLINK-41341
>                 URL: https://issues.apache.org/jira/browse/FLINK-41341
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API, Table SQL / Runtime
>            Reporter: Ramin Gharib
>            Assignee: Ramin Gharib
>            Priority: Major
>
> {code:sql}
> VARIANT_ARRAY_APPEND(variant, path, value)   -- VARIANT
> VARIANT_ARRAY_APPEND(v, '$.items', 'x')
> -- 
> {"coupon":null,"items":[{"qty":2,"sku":"A1"},"x"],"order_id":17,"user":{"email":"[email protected]","name":"ada"}}
> {code}
> Scope:
> * An array value is added as one nested element.
> * A missing path is ignored. A target that is not an array fails, and 
> TRY_VARIANT_ARRAY_APPEND returns NULL instead.
> * A SQL NULL argument gives NULL.
> * Table API and PyFlink expressions, SQL and Table API tests, docs.
> Depends on FLINK-41338



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to