Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

min varias colunas spark sql

> SELECT a, b, lead(b) OVER (PARTITION BY a ORDER BY b) FROM VALUES ('A1', 2), ('A1', 1), ('A2', 3), ('A1', 1) tab(a, b);
 A1 1   1
 A1 1   2
 A1 2   NULL
 A2 3   NULL
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #min #varias #colunas #spark #sql
ADD COMMENT
Topic
Name
2+8 =