Computing time-difference in HIVE and need it in hours:minutes:seconds. The answer I am getting is not quite right.
This is the query I have tried
SELECT from_unixtime(UNIX_TIMESTAMP('2019-01-01 12:00:00') - UNIX_TIMESTAMP('2019-01-01 10:10:10'),'hh:mm:ss');
The answer I get is 07:49:50
How do I refactor the code so that I have the answer 01:49:50