-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bigquery: support uploading structs directly
Uploader.Put now accepts structs (or struct pointers) without needing to wrap them in a StructSaver first. The meaning is equivalent to using a StructSaver with a schema inferred from the struct, and an empty InsertID. Inferring a schema for every struct will be expensive, but we will cache schema inference in a forthcoming CL. Change-Id: I31c24e6f551aaae89ebd3ddb499cc6d59a825f10 Reviewed-on: https://code-review.googlesource.com/9755 Reviewed-by: Michael Darakananda <pongad@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
- Loading branch information
Showing
3 changed files
with
119 additions
and
17 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
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