Hi Edwin,

I'm suspecting that's because those fields are considered metadata which
are treated separately. There's
https://issues.apache.org/jira/browse/FLINK-20454 for adding the metadata
support for the Debezium format with a PR provided, but not yet reviewed.
If you could have a look at the PR and if it would work, we can see if we
can get that merged in.

Best regards,

Martijn

On Wed, Sep 28, 2022 at 9:35 AM Edwin <xuhao...@163.com> wrote:

> Hi guys,
>
> I was trying to use flink sql to consume data from kafka source, the
> format of which is debezium-avro-confluent. And I encountered a
> AvroTypeException saying that "Found something, expecting union", where
> something is not a type but a field that I defined in the schema registery.
> So I looked into the source code and what I found
> in 
> org.apache.flink.formats.avro.registry.confluent.debezium.DebeziumAvroDeserializationSchema.createDebeziumAvroRowType
> was a segement of comment saying that "Debezium Avro contains other
> information, e.g. "source", "ts_ms", but we don't need them". I am
> wondering why don't we need it? Both source and ts_ms are in my schema, and
> I assume that the absence of source and ts_ms caused the exception
> described above.
> I am using Flink 1.15. Any help would be highly appreciated! Thanks!
>

Reply via email to