I have a query for big query native table, currently I'm able to run and get the data and write to sync, but I need to run the same query periodically and fetch the results. My implementation looks something like this:
val sqlQuery = s"SELECT name, addresses FROM $datasetId.$tableId WHERE age >= 100"
val centenarians: Source[(String, Seq[Address]), Future[QueryResponse[(String, Seq[Address])]]] =
BigQuery.query[(String, Seq[Address])](sqlQuery, useLegacySql = false)