googleapis / googleapis/google-cloud-rust

Normalize and validate field name

Open
#6,784 0 comments 0 reactions 1 assignee Claimed by @haphungw View on GitHub
api: bigquery
Dominant language
Rust
Stars
955
Forks
144
Avg merge
1d 5h
Merged PRs (30d)
279

Description

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).

1. If a field name is not a valid proto identifier, generate a placeholder name (e.g., `col_`) and attach the Storage Write API field extension `(google.cloud.bigquery.storage.v1.column_name) = ""`.
2. Return `SchemaError::DuplicateFieldName` if multiple fields in the same message share a name.
3. Return `SchemaError::EmptySchema` if a `TableSchema` contains no fields.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.