-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Currently, in a Kafka-to-Kafka (i.e. Avro -> Catalyst -> Avro) workflow (with columnselectortransformer), all fields are always nullable in the destination topic.
Example:
Source schema
{
"type": "record",
"name": "pageviews",
"namespace": "ksql",
"fields": [
{
"name": "viewtime",
"type": "long"
}
]
}
is written as
{
"type": "record",
"name": "pageviews",
"namespace": "ksql",
"fields": [
{
"name": "viewtime",
"type": ["long", "null"]
}
]
}
Expected: Non-nullable fields in the source Avro schema should also be non-nullable in the destination.
Nullable fields should stay nullable obviously.
Migration note
Making an existing nullable field non-nullable is a forward-compatible change (it's almost like adding a field)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working