Query a dataset of BigQuery

In this example, the function code accepts the query as input parameters. It executed the query and fetched the data from BigQuery.

Code: /lessons/Query_a_dataset_of_BigQuery

Steps

  1. Create a new function called QueryDatasetBigQuery.java.

  2. Set parameters as the query.

  3. Call BigQueryApi.getPage function and pass query, start, and size.

  4. Return the data fetched from BigQuery after running the query.

Last updated