Skip to content

Conversation

@danaford
Copy link

@danaford danaford commented Dec 12, 2025

Fixes StackOverflowError when converting Kafka Connect schemas that contain recursive type references (e.g., protobuf's google.protobuf.Struct or self-referencing messages like message Node { repeated Node children = 1; }).

Additionally, this change handles empty structs (protobuf messages with no fields) by converting them to StringType, since Parquet cannot write empty groups.

Attempts to address #14697

@dossett
Copy link

dossett commented Dec 15, 2025

The same error can happen with Avro and empty structs, as I found out recently. Would it be better to thrown an error than default to a string? I'm really not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants