Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script bigquery googleSheetsOptions范围在应用程序脚本中_Google Apps Script_Google Sheets_Google Cloud Platform_Google Bigquery_Google Sheets Api - Fatal编程技术网

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 googleSheetsOptions
range

例如,给定下面的表定义,如
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数据集和表。可以使用该表定义在表中加载数据。