I'm a little new to hiveQL and could use some tips.
I'm working on creating a view in Beeswax and I wanted to convert a string to a date data type.
My goal is to knock the time info off, and just return the date.
Example:
Convert ‘2013-11-01 12:31:15’
to ‘2013-11-01’
Does anyone know of a way or function that does this?
You can change the string to date by using following code:
unix_timestamp('string', 'format') - convert string to unixtimestamp from_unixtime(unixtimeformat) - convert unix time stamp to timestamp format to_date(timestamp) - fetch date part from the timestamp format