Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Modify Data Type in Hive

avatar
Rising Star

- Hello, I create a table in Hive and I set all the fields in String. However I wanna to transform to other data type using SerDe... But I don't know how to do it... I need to create a class in java to create the SerDe properties (I'm not a programmer)? Can I use some Serde Properties that already exists? Where? In the scipt that creates the Table? Sorry but I'm very confusing about this...

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Pedro Alves

Have a look at this example

These are the possible conversion

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Pedro Alves

Have a look at this example

These are the possible conversion

avatar
Rising Star

Thanks 🙂 So I use the code in Hive Script