Meng Zhang
01/24/2024, 8:17 PM{
"name": "some_id",
"type": [
"null",
"int"
],
"default": null
},
This is the CREATE statement:
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!Meng Zhang
01/25/2024, 4:25 PM