Skip to content

Commit

Permalink
Attempt 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jan 23, 2025
1 parent 71213da commit 1e7f35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/bigquery/storagewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 1e7f35e

Please sign in to comment.