I have the below data:
================================================================
session_id screen_name screen_launch_time
================================================================
990004916946605-1404157897784 screen1 1404157898275
990004916946605-1404157897784 screen2 1404157898337
990004947764274-1435162269418 screen1 1435162274044
990004947764274-1435162269418 screen3 1435162274081
I would like to use an array_agg
function to get my data in the below format:
=========================================================
session_id screen_flow count
=========================================================
990004916946605-1404157897784 screen1->screen2 1
990004947764274-1435162269418 screen1->screen3 1
Has anyone tried writing a UDAF
or python
script to implement the logic used in an array_agg
function?
Kindly share your thoughts.