- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Oracle Query conversion to Hive?
- Labels:
-
Apache Hive
-
Apache Impala
Created ‎05-27-2021 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎05-28-2021 12:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎05-28-2021 12:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎06-03-2021 05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
