bigquery: adapt.NormalizeDescriptor produces Invalid DescriptorProto with nested enums #5794
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
BigQuery
Environment
Mac OSX
Go Environment
$ go version go1.17.5 darwin/amd64
Code
proto definition
Usage
BigQuery Table Schema
Expected behavior
The proto records are writen to the BigQuery Table
Actual behavior
Additional Information
if you look at the descriptor produced by
adapt.NormalizeDescriptor(message.ProtoReflect().Descriptor())
The nested type forbqstorage_Flag_E
is only defined within thebqstorage_Am
type. I think that's the bug. The Enum should be defined at the root level nested type.The text was updated successfully, but these errors were encountered: