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


##########
go/adbc/driver/snowflake/record_reader.go:
##########
@@ -389,7 +386,15 @@ func jsonDataToArrow(ctx context.Context, bldr 
*array.RecordBuilder, ld gosnowfl
                                        return nil, err
                                }
 
-                               if tz != time.UTC {
+                               snowflakeType, ok := 
bldr.Schema().Field(i).Metadata.GetValue(MetadataKeySnowflakeType)
+                               if !ok {
+                                       return nil, errToAdbcErr(
+                                               adbc.StatusInvalidData,
+                                               fmt.Errorf("key %s not found in 
metadata for field %s", MetadataKeySnowflakeType, bldr.Schema().Field(i).Name),
+                                       )
+                               }

Review Comment:
   That makes sense



-- 
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