Reputation: 661
I have a string column in a parquet file:-
{"name":"bob","age":"35"}
I need to create separate columns for each data item.
How can I achieve this? Can I convert the string to a map or parse directly to columns?
Upvotes: 1
Views: 876
Reputation: 6073
We can use Parse transformation in mapping data flow to achieve that.
Select Single document as Document form. Select Column_1
, enter Column_1
as column name, enter (name as string,age as integer)
as Output column type:
Upvotes: 1