Input - read from existing hive or redshift table
user | Timestamp | SessionId
---------------------------------------
u1 | 10:00AM | ?
u1 | 10:05AM | ?
u1 | 10:10AM | ?
u1 | 10:15AM | ?
u1 | 11:40AM | ?
u1 | 11:50AM | ?
u1 | 12:15PM | ?
Expected output
user | Timestamp | SessionId
---------------------------------------
u1 | 10:00AM | s1
u1 | 10:05AM | s1
u1 | 10:10AM | s1
u1 | 10:15AM | s1
u1 | 11:40AM | s2
u1 | 11:50AM | s2
u1 | 12:15PM | s3
How are we going to resolve this to update existing table using hive or redshift ?