简体   繁体   English

如何在 Google AppScript 中获取 BigQuery 数据集中的表列表

[英]How do I get the list of tables in my BigQuery dataset in a Google AppScript

I'm writing a Google AppsScript and am having trouble getting a list of the tables in my DataSet.我正在编写一个 Google AppsScript,但在获取我的 DataSet 中的表列表时遇到了麻烦。

Here is my code...这是我的代码...

function GetTablesList(){
  var tableList = BigQuery.Tables.list('crave-production','Rons_ODBC_Test')
  Logger.log('tableListItemCount:', tableList.totalItems)
}

It returns nothing after the 'tableListItemCount:' label.在 'tableListItemCount:' label 之后它什么也不返回。

What am I doing wrong?我究竟做错了什么?

I believe this Logger.log('tableListItemCount:', tableList.totalItems) should be this Logger.log('tableListItemCount: %s', tableList.totalItems)我相信这个Logger.log('tableListItemCount:', tableList.totalItems)应该是这个Logger.log('tableListItemCount: %s', tableList.totalItems)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 bigquery 数据集中所有表的行数 - number of rows of all tables in a bigquery dataset Google Cloud Function 无法删除 Bigquery 数据集 - Google Cloud Function Not able to delete Bigquery Dataset 在 Google Analytics BigQuery 中获取列表 hits.eventInfo.eventAction - Get List hits.eventInfo.eventAction in Google Analytics BigQuery 如何通过 Python 谷歌客户端 API 列出我的预定查询? - How do I list my scheduled queries via the Python google client API? 如何解决 BigQuery 中的“在美国位置找不到数据集”错误? - How can I solve the error "Dataset was not found in location US" in BigQuery? 如何在 BigQuery 中随机匹配元素 - How Do I Randomly Match Elements in BigQuery 如何比较 Bigquery 中的多个表并将结果放在不同的列中? - How can I compare multiple tables in Bigquery and get the results in in separate columns? 在 BigQuery Google Cloud 中获取我所有计划的 SQL 查询 - Get all my scheduled SQL queries in BigQuery Google Cloud 如何在 BigQuery Explorer 列表中显示来自另一个项目的数据集? - How do I display datasets from another project in BigQuery Explorer list? 我们如何查看由 Google Cloud BigQuery 执行的查询计划? - How do we see a query plan executed by Google Cloud BigQuery?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM