Docs›Reference›Functions›Semi-structured data›dedupdedupOn this pageSyntaxArgumentsReturnsExamplesRemoves duplicate values from an array. Syntax Copydedup( <array_expr> ) Arguments <array_expr> must be an array. Returns Returns an array. The first occurrence of each value is kept. Examples CopySELECT dedup([1, 2, 2, 3, 1]);