Re: Timestamp Difference/operations

2018-10-16 Thread Paras Agarwal
TIMESTAMP) + (??) AS DATE) Need to fill above ?? so that i can process. Thanks & Regards, Paras 9130006036 From: Srabasti Banerjee Sent: Tuesday, October 16, 2018 6:45:26 AM To: Paras Agarwal; John Zhuge Cc: user; dev Subject: Re: Timestamp Difference/operati

Re: Timestamp Difference/operations

2018-10-15 Thread Brandon Geise
How about select unix_timestamp(timestamp2) – unix_timestamp(timestamp1)? From: Paras Agarwal Date: Monday, October 15, 2018 at 2:41 AM To: John Zhuge Cc: user , dev Subject: Re: Timestamp Difference/operations Thanks John, Actually need full date and time difference not just

Re: Timestamp Difference/operations

2018-10-15 Thread Paras Agarwal
:47 PM To: Paras Agarwal Cc: user; dev Subject: Re: Timestamp Difference/operations Yeah, operator "-" does not seem to be supported, however, you can use "datediff" function: In [9]: select datediff(CAST('2000-02-01 12:34:34' AS TIMESTAMP), CAST('2000-01-01 00:00:00'

Re: Timestamp Difference/operations

2018-10-12 Thread John Zhuge
Yeah, operator "-" does not seem to be supported, however, you can use "datediff" function: In [9]: select datediff(CAST('2000-02-01 12:34:34' AS TIMESTAMP), CAST('2000-01-01 00:00:00' AS TIMESTAMP)) Out[9]:

Timestamp Difference/operations

2018-10-12 Thread Paras Agarwal
Hello Spark Community, Currently in hive we can do operations on Timestamp Like : CAST('2000-01-01 12:34:34' AS TIMESTAMP) - CAST('2000-01-01 00:00:00' AS TIMESTAMP) Seems its not supporting in spark. Is there any way available. Kindly provide some insight on this. Paras 9130006036