gluesql / gluesql

GlueSQL is quite sticky. It attaches to anywhere.

Home Page:https://gluesql.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `DEDUP` function

jinlee0 opened this issue · comments

Description

DEDUP(list)
Remove duplicate elements in list.

Examples

SELECT DEDUP(CAST('[0, 1, 2, 2, 3, 4, 4]') AS List)
-- > [0, 1, 2, 3, 4]
SELECT DEDUP(CAST('["1", 1, 1, "1", "1"]') AS List)
-- > ["1", 1, "1"]