This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new befdd4b5b fix(go/adbc/driver/bigquery): fix timestamp arrow type to
use micro seconds (#3364)
befdd4b5b is described below
commit befdd4b5b9860c0aea2deba009a31f98bdc7011d
Author: Xuliang (Harry) Sun <[email protected]>
AuthorDate: Thu Aug 28 11:34:31 2025 -0700
fix(go/adbc/driver/bigquery): fix timestamp arrow type to use micro seconds
(#3364)
This is also documented officially
https://cloud.google.com/bigquery/docs/reference/storage#arrow_schema_details
see `TIMESTAMP`
---
go/adbc/driver/bigquery/connection.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go/adbc/driver/bigquery/connection.go
b/go/adbc/driver/bigquery/connection.go
index 6b280252b..2b4889185 100644
--- a/go/adbc/driver/bigquery/connection.go
+++ b/go/adbc/driver/bigquery/connection.go
@@ -809,7 +809,7 @@ func buildField(schema *bigquery.FieldSchema, level uint)
(arrow.Field, error) {
case bigquery.BooleanFieldType:
field.Type = arrow.FixedWidthTypes.Boolean
case bigquery.TimestampFieldType:
- field.Type = arrow.FixedWidthTypes.Timestamp_ms
+ field.Type = arrow.FixedWidthTypes.Timestamp_us
case bigquery.RecordFieldType:
// create an Arrow struct for BigQuery Record fields
nestedFields := make([]arrow.Field, len(schema.Schema))