Hello fellow Avro users, Do you guys have this problem when casting Array<String> to String[]? Am I missing something here :(
I got a runtime exception as follows
Exception in thread "main" java.lang.ArrayStoreException:
org.apache.avro.util.Utf8
at java.util.AbstractCollection.toArray(AbstractCollection.java:171)
Array<String> idsArray = (Array<String>) rec.get("ids");
String[] ids = (String[]) idsArray.toArray(new String[idsArray.size()]);
Thank you
