BigQuery table column names allow characters that are invalid in protobuf field identifiers (e.g., hyphens user-id, spaces first name, numbers as first character 123col, or non-ascii characters).
- If a field name is not a valid proto identifier, generate a placeholder name (e.g.,
col_<base64>) and attach the Storage Write API field extension (google.cloud.bigquery.storage.v1.column_name) = "<original_name>".
- Return
SchemaError::DuplicateFieldName if multiple fields in the same message share a name.
- Return
SchemaError::EmptySchema if a TableSchema contains no fields.
BigQuery table column names allow characters that are invalid in protobuf field identifiers (e.g., hyphens
user-id, spacesfirst name, numbers as first character123col, or non-ascii characters).col_<base64>) and attach the Storage Write API field extension(google.cloud.bigquery.storage.v1.column_name) = "<original_name>".SchemaError::DuplicateFieldNameif multiple fields in the same message share a name.SchemaError::EmptySchemaif aTableSchemacontains no fields.