cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

cdc: large dates and timestamps are silently changed

Open madelynnblue opened this issue 7 years ago • 5 comments

The goavro library uses int32s when marshaling dates and timestamps. If they don't fit in that size they are silently truncated.

Jira issue: CRDB-4426

madelynnblue avatar May 14 '19 17:05 madelynnblue

This may actually be a problem with the call to .UnixNano, suggesting that goavro only handles dates and timestamps whose nanosecond representation fits in an int64.

madelynnblue avatar May 14 '19 19:05 madelynnblue

@HonoreDB do we think this is still an issue? Otherwise lets close

amruss avatar May 04 '22 18:05 amruss

I'll look into it, I know goavro's improved their date handling on recent versions but they may not have fixed this.

HonoreDB avatar May 04 '22 18:05 HonoreDB

@HonoreDB please close this issue if it's stale.

miretskiy avatar Jan 09 '23 15:01 miretskiy

Close/stale -- will reopen if somebody complains.

miretskiy avatar Sep 18 '23 15:09 miretskiy