You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tanner Clary (Jira)" <ji...@apache.org> on 2023/05/31 17:29:00 UTC
[jira] [Closed] (CALCITE-5734) Add ARRAY_COMPACT for Spark dialect
[ https://issues.apache.org/jira/browse/CALCITE-5734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tanner Clary closed CALCITE-5734.
---------------------------------
Assignee: jackylau
Resolution: Fixed
> Add ARRAY_COMPACT for Spark dialect
> -----------------------------------
>
> Key: CALCITE-5734
> URL: https://issues.apache.org/jira/browse/CALCITE-5734
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.35.0
> Reporter: jackylau
> Assignee: jackylau
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.35.0
>
>
> array_compact(array) - Removes null values from the array.
> *Examples:*
>
> {{> SELECT array_compact(array(1, 2, 3, null));}}
> {{ [1,2,3]}}
> {{> SELECT array_compact(array("a", "b", "c"));}}
> {{ ["a","b","c"]}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)