sabari dass
03/24/2023, 9:30 PMChristopher Grant
03/27/2023, 5:10 PMlast_value
or first_value
functions over a window (and set the ignoreNulls option to true) - you would need one of these functions per column
(3) rank
(or row_number) over a similar window from (2) but making sure you're ordering in descending order
(4) filter for the latest for each column (where your value from (3) is 1)
(5) translate this back to a map