Skip to content

Read data from a BigQuery table from C++ code with minimum dependencies. #13050

Answered by coryan
tzovas asked this question in Q&A
Discussion options

You must be logged in to vote

Does google offer another format?

Yes, but we have not implemented a C++ SDK for it. You can read data using the REST API for BigQuery:

https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/list

We expect that this is fairly slow for large data sets. The service has to format the data as JSON and then your application (or a future C++ SDK) would need to parse it. Reading data in pages also impacts throughput, as each page is a new HTTP request.

Is there a way to read/parse data from a BQ table without using either of those libraries?

When using the BigQuery Storage API, those are the only possible download formats:

https://github.com/googleapis/googleapis/blob/01ebb1901fa…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tzovas
Comment options

@coryan
Comment options

@tzovas
Comment options

Answer selected by tzovas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants