Google apps script bigquery googleSheetsOptions范围在应用程序脚本中
与Google apps script bigquery googleSheetsOptions范围在应用程序脚本中,google-apps-script,google-sheets,google-cloud-platform,google-bigquery,google-sheets-api,Google Apps Script,Google Sheets,Google Cloud Platform,Google Bigquery,Google Sheets Api,与bq命令行类似,在应用程序脚本(externalDataConfiguration.googleSheetsOptions.range)中定义bigquery查询时,是否可以使用bigquery googleSheetsOptionsrange 例如,给定下面的表定义,如google_sheets\u tabeledef.json,我可以在Apps脚本中将此表定义作为bigquery方法传递吗 { "autodetect": false, "sourceFormat": "GOOGL
bq
命令行类似,在应用程序脚本(externalDataConfiguration.googleSheetsOptions.range)中定义bigquery查询时,是否可以使用bigquery googleSheetsOptionsrange
例如,给定下面的表定义,如google_sheets\u tabeledef.json
,我可以在Apps脚本中将此表定义作为bigquery方法传递吗
{
"autodetect": false,
"sourceFormat": "GOOGLE_SHEETS",
"sourceUris": [
"https://docs.google.com/spreadsheets/d/xxxxxxxxxxxxxx"
],
"maxBadRecords": 1,
"googleSheetsOptions":
{
"range": "test_sheet!A1:B20",
"skipLeadingRows": 0
},
"schema" : {
"fields": [
{
"name": "col1",
"type": "string"
},
{
"name": "col2",
"type": "int64"
},
]
}
}
相关问题:
我相信这已经被添加到了bigQuery中的表定义中(答案写于2019年8月)。因此,在通过网页定义表格时,现在有一个范围部分,如下面的屏幕截图所示:
@li tan关于googleSheetsOptions
范围的相关问题,这次是在应用程序脚本中。是否可以提供一个用例。不清楚你想做什么。您可以从AppScript访问BigQuery API并管理BigQuery数据集和表。可以使用该表定义在表中加载数据。