Skip to content

Commit e6f38b9

Browse files
committed
changefeedccl: return error for dtimestamptz case in protobuf encoder
When the protobuf encoder encounters an error when parsing the DTimestampTZ type, it does special handling if the code is being run in a benchmark, but neglects to return the error otherwise. This fixes the issue. Bug found with AI. Epic: none Release note: None
1 parent 69f7088 commit e6f38b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/ccl/changefeedccl/encoder_protobuf.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ func datumToProtoValue(
400400
Value: &changefeedpb.Value_StringValue{StringValue: v.Time.Format(time.RFC3339Nano)},
401401
}, nil
402402
}
403+
return nil, err
403404
}
404405
return &changefeedpb.Value{
405406
Value: &changefeedpb.Value_TimestampValue{

0 commit comments

Comments
 (0)