-
Notifications
You must be signed in to change notification settings - Fork 1.1k
bigquery: support loading a POJO or Map like GSON does #1370
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.triaged for GAtype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.triaged for GAtype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
The code for processing the results of a query is a bit convoluted.
Example from https://github.com/GoogleCloudPlatform/java-docs-samples/blob/2e3f285b7dccfd978b14033f9869e728e8c13e56/bigquery/cloud-client/src/main/java/com/example/bigquery/SimpleApp.java#L53
For a fixed query, I'd love to be able to fill in the object the way that I can in GSON. Then I'd be able to do something like:
For context, here is a similar issue in the Go libraries: googleapis/google-cloud-go#399