我想bigquery
通过 R 使用标准 SQL执行。
library(bigrquery)
sql = paste("#StandardSQL\n SELECT SUM(copies) ",
" FROM `bigquery-public-data.github_repos.sample_contents` ",
" WHERE NOT binary", sep="")
# Execute the query and store the result
sample_contents <- query_exec(sql, project = "###", useLegacySql = NULL)
但我得到以下错误:
ERROR: Query text specifies use_legacy_sql:false, while API options specify:true
我找不到在哪里设置 API 选项。
谢谢你。