ARRAY_TOP_N (Lakehouse v2)
Renvoie les N premiers éléments d’un tableau.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_top_n([3,1,4,1,5], 3)Exemples Analyze
Section intitulée « Exemples Analyze »func.array_top_n([3, 1, 4, 1, 5], 3)
┌─────────┐│ [5,4,3] │└─────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_TOP_N([3,1,4,1,5], 3)Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_TOP_N([3, 1, 4, 1, 5], 3);
┌─────────┐│ [5,4,3] │└─────────┘