From 1e7f35ecb40cb530c6b37f58b559c1d25607dc6c Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Thu, 23 Jan 2025 09:55:05 -0800 Subject: [PATCH] Attempt 2. --- clients/bigquery/storagewrite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/bigquery/storagewrite.go b/clients/bigquery/storagewrite.go index 34a2391a1..0d9ffa881 100644 --- a/clients/bigquery/storagewrite.go +++ b/clients/bigquery/storagewrite.go @@ -132,7 +132,7 @@ func encodePacked64DatetimeMicros(dateTime time.Time) int64 { func rowToMessage(row map[string]any, columns []columns.Column, messageDescriptor protoreflect.MessageDescriptor) (*dynamicpb.Message, error) { message := dynamicpb.NewMessage(messageDescriptor) for _, column := range columns { - field := message.Descriptor().Fields().ByTextName(column.Name()) + field := message.Descriptor().Fields().ByName(protoreflect.Name(column.Name())) if field == nil { return nil, fmt.Errorf("failed to find a field named %q", column.Name()) }