how can I create new columns in HIVE according to the type stored in an existing column?
for example, I have :
id ProductType
1 car
2 bike
3 truck
and I would like to have:
id car bike truck
1 1 null null
2 null 1 null
3 null null 1