我如何在 google 脚本中获取 bigquery table 数据?

How i can get bigquery table data in google script?

I want to bigquery table data using app script ,I am using this code but i am getting job id, i dont job id i want table data please help me this.

    function runQuery() {
     DriveApp.getRootFolder();
    var projectId = 'imran-338706';
   var request = {
   query: 'SELECT network_affiliate_name FROM `imran-338706.imranabc.bhk` LIMIT 10',
 useLegacySql: false
 }
var queryResults = BigQuery.Jobs.query(request, projectId);
   var jobId = queryResults.jobReference.jobId;
console.log(queryResults)
}

我使用以下代码对返回少量数据的查询进行了验证:

function runQuery() {
DriveApp.getRootFolder();
var projectId = ProjectID;
var request = {
 query: 'SELECT * from `bigquery-public-data.austin_311.311_service_requests` limit 2',
 useLegacySql: false
}
var queryResults = BigQuery.Jobs.query(request, projectId);
var jobId = queryResults.jobReference.jobId;
var rows = queryResults.rows;
 
var header = "";
for (var i = 0; i < queryResults.schema.fields.length; i++){
header+= " " + queryResults.schema.fields[i].name;
}
console.log(header)
 
 
var data = new Array(rows.length);
var string = ""
for (var i = 0; i < rows.length; i++) {
 var cols = rows[i].f;
 data[i] = new Array(cols.length);
 for (var j = 0; j < cols.length; j++) {
   data[i][j]= cols[j].v;
   string+= " "+ data[i][j]
 
 }
 console.log(string);
 }
}

它给出了架构和行内容: