Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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