Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Converting Avro String to Array

Converting Avro String to Array

New Contributor

Hi,

I have an Avro Schema where there is a field of type String which contains a comma separated list of values which I need to have as an array.

Input:

{
   "field" : "value1,value2,value3"
}

Output:

{
   "field" : [ "value1", "value2", "value3"]
}

How can I achieve this?

Don't have an account?
Coming from Hortonworks? Activate your account here