79678689

Date: 2025-06-25 08:34:02
Score: 1.5
Natty:
Report link

Databricks implements max_by and min_by, which is similar to keep (dense_rank last order by) :

select id,
       max_by(column_a, column_b)
from table_name
group by id;

Both functions can also be invoked as a window function using the OVER clause.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tim St.