ARRAY_DISTINCT (Lakehouse v1)
Supprime tous les doublons et les valeurs NULL du tableau sans conserver l’ordre d’origine.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_distinct( <array> )Exemples Analyze
Section intitulée « Exemples Analyze »func.array_distinct([1, 2, 2, 4, 3])
┌───────────────────────────────────────┐│ func.array_distinct([1, 2, 2, 4, 3]) │├───────────────────────────────────────┤│ [1,2,4,3] │└───────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_DISTINCT( <array> )Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_DISTINCT([1, 2, 2, 4, 3]);
┌─────────────────────────────────┐│ array_distinct([1, 2, 2, 4, 3]) │├─────────────────────────────────┤│ [1,2,4,3] │└─────────────────────────────────┘