JSON_ARRAY_DISTINCT (Lakehouse v1)
Supprime les éléments en double d’un tableau JSON et renvoie un tableau ne contenant que des éléments distincts.
Syntaxe SQL
Section intitulée « Syntaxe SQL »JSON_ARRAY_DISTINCT(<json_array>)Type de retour
Section intitulée « Type de retour »Tableau JSON.
Exemples SQL
Section intitulée « Exemples SQL »SELECT JSON_ARRAY_DISTINCT('["apple", "banana", "apple", "orange", "banana"]'::VARIANT);
-[ RECORD 1 ]-----------------------------------json_array_distinct('["apple", "banana", "apple", "orange", "banana"]'::VARIANT): ["apple","banana","orange"]