Skip to content

Commit 97dbae0

Browse files
craig[bot]rharding6373
andcommitted
Merge #152307
152307: changefeedccl: return error for dtimestamptz case in protobuf encoder r=andyyang890 a=rharding6373 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 Co-authored-by: rharding6373 <[email protected]>
2 parents 1aabeeb + e6f38b9 commit 97dbae0

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)