RE: Flink sql CLI parsing avro format data error 解析avro数据失败

2021-08-26 Thread Schwalbe Matthias
Hi Wayne, The only obvious difference between you ACRO schema and the table schema is, that you AVRO ccc is nullable and your SQL ‘ccc’ is not nullable. Please adjust one of the two. Also (not entirely sure) in order to correctly map an AVRO nullable to SQL it needs to have a default value like

Re: Flink sql CLI parsing avro format data error 解析avro数据失败

2021-08-30 Thread Timo Walther
Hi, could it be that there is some corrupt record in your Kafka topic? Maybe you can read from a different offset to verify that. In general, I cannot spot an obivious mistake in your schema. Regards, Timo On 28.08.21 14:32, Wayne wrote: i have Apache Avro schema 我的avro schema 如下 |{ "ty

Re: Flink sql CLI parsing avro format data error 解析avro数据失败

2021-08-30 Thread Timo Walther
Thanks for letting us now. I hope we can improve the Avro support in the 1.15 release. Maybe the `"name" : "KafkaAvroMessage", "namespace" : "xxx"` causes the exception then? Otherwise the schema looks identical. Regards, Timo On 30.08.21 11:00, Wayne wrote: I use the way of writing code t