Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

convert unix timestamp to timestamp format

avatar
New Member

what is the sql query to convert unix timestamp in a column of table to julian or greg date format ?

1 ACCEPTED SOLUTION

avatar
New Member

Got figured it out, below query will convert the unix time to timestamp

select from_unixtime(cast(time/1000 as bigint)) from table_1;

time is the column name

View solution in original post

1 REPLY 1

avatar
New Member

Got figured it out, below query will convert the unix time to timestamp

select from_unixtime(cast(time/1000 as bigint)) from table_1;

time is the column name