Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bigquery): enhance SchemaFromJSON (#5877)
* feat(bigquery): enhance SchemaFromJSON This PR does two things: It enhances SchemaFromJSON to work directly with the underlying TableFieldSchema messages from the discovery API definition, and adds a FormatJSONFields method to Schema to export the same format consumed by SchemaFromJSON. With this, we're able clear up the existing internal duplicate logic for this special case, and we manage to address two different feature requests at the same time. Fixes: #5833 Fixes: #5867 Co-authored-by: Steffany Brown <30247553+steffnay@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
131 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters