Skip to content

[Feature] group_uniq_array function #13982

Description

@Yukang-Lian

Search before asking

  • I had searched in the issues and found no similar issues.

Description

syntax: groupUniqArray(x) or groupUniqArray(max_size)(x)

function: Creates an array from different argument values.

SELECT *
FROM arrays_test
┌─s───────┬─arr─────┐
│ alex    │ [1,2]   │
│ hello   │ [1,2]   │
│ World   │ [3,4,5] │
│ Goodbye │ []      │
└─────────┴─────────┘

SELECT groupUniqArray(arr) from arrays_test
┌─groupUniqArray(arr)─┐
│ [[],[1,2],[3,4,5]]  │
└─────────────────────┘

Use case

No response

Related issues

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions