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]
Created on 09-04-2015 05:51 AM - edited 09-16-2022 02:39 AM
Hi,
I have date column in PIG. I have converted the date column from string to Date using "ToDate" function in PIG. However, when I am trying to
import that data in HIVE, I am getting NULL values. I have checked the date format in PIG and HIVE they are different.
So is their any way to make the date format same in PIG and HIVE. Or what could be the other way to store the Date into HIVE.
My date format in text file is : 2014 10 15 17:10:13.728
Let me know if any further information is required from my side.
Regards,
Neeraj
Created 09-05-2015 08:44 AM
I Have found the solution.
I have converted the string in desired format (which hive requires (yyyy-MM-dd HH:mm:ss)) and then imported that formatted
string into HIVE and it works pretty well.
Regards,
Neeraj
Created 09-05-2015 08:44 AM
I Have found the solution.
I have converted the string in desired format (which hive requires (yyyy-MM-dd HH:mm:ss)) and then imported that formatted
string into HIVE and it works pretty well.
Regards,
Neeraj
Created 09-06-2015 06:12 AM
Congratulations on finding the solution. Thank you for sharing it in case others run across the same issue. 🙂