Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan <148575555+nathan-artie@users.noreply.github.com>
  • Loading branch information
nathan-artie authored Apr 8, 2024
1 parent dd65aee commit 9a5562f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/debezium/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func (f Field) ParseValue(value any) (any, error) {

if bytes, ok := value.([]byte); ok {
// Preserve existing behavior by base64 encoding []byte values to a string.
// TODO: Look into inverting this logic so that in the case the field type is "bytes" but the value is a string we
// base64 decode it here, then things downstream from here can just deal with []byte values.
return base64.StdEncoding.EncodeToString(bytes), nil
}

Expand Down

0 comments on commit 9a5562f

Please sign in to comment.