Github user tragicjun commented on the issue:

    https://github.com/apache/flink/pull/6082
  
    Hi @fhueske , 
    
    Avro array type actually is mapped to Java List type, specifically the 
class **org.apache.avro.generic.GenericData.Array** extends 
**java.util.AbstractList**. I tried to convert the List  to an Array in 
**AvroRowDeserializationSchema**, but to make it generic an **Object []** must 
be returned, which would then lead to a cast problem when passing the **Object 
[]** to TypeSerializer.copy().
    
    I tried using **ListTypeInfo** to declare corresponding Avro array type, it 
was just working fine, as we already have **ListSerializer** to support it.


---

Reply via email to