-
My understanding is that, when reading data from a BQ table, they are serialized using either the AVRO or the ARROW format. In C++, in at least one example that I found online, people use the C++ avro library to parse rows from a table. There is also the equivalent arrow library. Is there a way to read/parse data from a BQ table without using either of those libraries? They have heavy dependencies (like boost) and I will like to avoid installing boost just to read from a table. Is there maybe some lightweight library? Does google offer another format? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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.
When using the BigQuery Storage API, those are the only possible download formats: |
Beta Was this translation helpful? Give feedback.
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.
When using the BigQuery Storage API, those are the only possible download formats:
https://github.com/googleapis/googleapis/blob/01ebb1901fa…