Skip to content

Commit

Permalink
Minor fix to include signed ints in Protobuf transform (confluentinc#10
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota authored Aug 19, 2024
1 parent f50557a commit 6bb4ff1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schemaregistry/serde/protobuf/protobuf_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ func getType(fd protoreflect.FieldDescriptor) serde.FieldType {
return serde.TypeString
case protoreflect.BytesKind:
return serde.TypeBytes
case protoreflect.Int32Kind, protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Sfixed32Kind:
case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Uint32Kind,
protoreflect.Fixed32Kind, protoreflect.Sfixed32Kind:
return serde.TypeInt
case protoreflect.Int64Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind, protoreflect.Sfixed64Kind:
case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Uint64Kind,
protoreflect.Fixed64Kind, protoreflect.Sfixed64Kind:
return serde.TypeLong
case protoreflect.FloatKind:
return serde.TypeFloat
Expand Down

0 comments on commit 6bb4ff1

Please sign in to comment.