I have 2 columns with timestamp data upto nanoseconds which is coming from a transaction log file. I want to find the difference in time upto nanoseconds. I have tried to directly subtract the columns data by converting them into timestamp but getting multiple errors while doing so. Is there any way to do it in Hive.
Request_Time Response_Time
2018-11-08 12:24:24.123456345 2018-11-09 12:24:24.123556567
2018-11-08 23:59:59.234123678 2018-11-09 00:00:00.342567456
2018-11-08 12:24:24.678345345 2018-11-09 01:02:03.688456678
2018-11-08 12:24:24.789456234 2018-11-08 12:24:24.799455567
I want to find the difference which is (Response_Time - Request_Time). Any help is appreciated.