hi guys, can someone help with this error logs "Ca...
# troubleshooting
m
hi guys, can someone help with this error logs "Caused by: org.apache.flink.avro.shaded.org.apache.avro.AvroTypeException: Found int, expecting union" I'm using Flink 1.8.1 with Debezium connector and debezium-avro-confluent as format in Flink SQL, it was fine for some other tables earlier but got this error for some other tables. Checked online it seems to be related to Avro fields like this:
Copy code
{
			"name": "some_id",
			"type": [
				"null",
				"int"
			],
			"default": null
		},
This is the CREATE statement:
Copy code
CREATE TABLE topic_entity (`id` BIGINT,`created_at` TIMESTAMP(0),`created_by` STRING, `modified_at` TIMESTAMP(0),`modified_by` STRING, `some_id` BIGINT) WITH (
    'connector' = 'kafka',
    'topic' = 'local_dev.entity',
    'properties.bootstrap.servers' = 'http://kafka-service:29092',
    'properties.group.id' = 'groupid',
    'format' = 'debezium-avro-confluent',
    'debezium-avro-confluent.url' = 'http://schema-registry:8081',
    'scan.startup.mode' = 'earliest-offset'
);
I checked here https://docs.confluent.io/cloud/current/flink/reference/serialization.html#avro-types-to-flink-sql-types, and tried with NULLABLE(type) but it failed to parse, what's the proper way to represent nullable fields like this or is there any other configurations that can avoid this issue, thanks in advance!
It's actually related to Boolean value (TINYINT in mysql) thanks to the info from this ticket: https://issues.apache.org/jira/browse/FLINK-18758