Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Oracle Query conversion to Hive?

avatar
New Member

I am really new to Hive/Impala. I am looking to convert some SQL queries into Hive.

 

I have  a column called date (Ex:2011-09-22 05:01:38) and I would like to convert it into the following format: 09-22-2011-05.01.38 AM

 

Any help is appreciated.

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Hi ,

To change the format of the input time we need to use unix_timestamp along with from_unixtime funcitons.

 

Can you check this below Cloudera community article:

https://community.cloudera.com/t5/Support-Questions/Format-date-in-HIVE/td-p/203463

 

 

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

Hi ,

To change the format of the input time we need to use unix_timestamp along with from_unixtime funcitons.

 

Can you check this below Cloudera community article:

https://community.cloudera.com/t5/Support-Questions/Format-date-in-HIVE/td-p/203463

 

 

avatar
Community Manager

@naush_madaka07 Has your issue been resolved? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

 

Screen Shot 2019-08-06 at 1.54.47 PM.pngmark as solution button

Keep the questions coming