zeroshade commented on code in PR #1456:
URL: https://github.com/apache/arrow-adbc/pull/1456#discussion_r1458045969


##########
go/adbc/driver/snowflake/record_reader.go:
##########
@@ -212,13 +215,7 @@ func getTransformer(sc *arrow.Schema, ld 
gosnowflake.ArrowStreamLoader, useHighP
                                                        continue
                                                }
 
-                                               q := int64(t) / 
int64(math.Pow10(int(srcMeta.Scale)))
-                                               r := int64(t) % 
int64(math.Pow10(int(srcMeta.Scale)))
-                                               v, err := 
arrow.TimestampFromTime(time.Unix(q, r), dt.Unit)
-                                               if err != nil {
-                                                       return nil, err
-                                               }
-                                               tb.Append(v)
+                                               tb.Append(arrow.Timestamp(t))

Review Comment:
   I'm confused, did Snowflake change how they return timestamp data?  In 
addition, this change to use `tb.Append(arrow.Timestamp(t))` doesn't take into 
account the timestamp unit for the input data type.



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to