candiduslynx commented on code in PR #35687:
URL: https://github.com/apache/arrow/pull/35687#discussion_r1205583673


##########
go/arrow/type_traits_test.go:
##########
@@ -233,3 +233,37 @@ func TestMonthDayNanoIntervalTraits(t *testing.T) {
                t.Fatalf("invalid values:\nv1=%v\nv2=%v\n", v1, v2)
        }
 }
+
+func TestTimestampTraits(t *testing.T) {
+       const N = 10
+       b1 := arrow.TimestampTraits.CastToBytes([]arrow.Timestamp{
+               0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+       })
+
+       b2 := make([]byte, arrow.TimestampTraits.BytesRequired(N))
+       for i := 0; i < N; i++ {
+               beg := i * arrow.TimestampSizeBytes
+               end := (i + 1) * arrow.TimestampSizeBytes
+               arrow.TimestampTraits.PutValue(b2[beg:end], arrow.Timestamp(i))
+       }
+
+       if !reflect.DeepEqual(b1, b2) {

Review Comment:
   Done in e57e2ae596a072ec3e0d1da6460f7d21e86cbd55



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to