hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haas, Nichole" <>
Subject Re: Extracting data from ELB log date format
Date Wed, 21 Sep 2016 13:59:34 GMT
in Hive CL:

set today = cast(concat(substr(cast(current_date() as string),1,4),substr(cast(current_date()
as string),6,2),substr(cast(current_date() as string),9,2)) as int)

From: Manish Rangari <>
Reply-To: "" <>
Date: Wednesday, September 21, 2016 at 6:23 AM
To: "" <>
Subject: Extracting data from ELB log date format


I am trying to extract date, time, month, minute etc from below timestamp format but did not
find any function for this. Can anyone help me to extract the details?




This e-mail message is authorized for use by the intended recipient only and may contain information
that is privileged and confidential. If you received this message in error, please call us
immediately at (425) 590-5000 and ask to speak to the message sender. Please do not copy,
disseminate, or retain this message unless you are the intended recipient. In addition, to
ensure the security of your data, please do not send any unencrypted credit card or personally
identifiable information to this email address. Thank you.
View raw message