【发布时间】:2021-06-08 23:34:15
【问题描述】:
在另一个与 Amazon Athena 合作的项目中,我可以这样做:
con <- DBI::dbConnect(odbc::odbc(), Driver = "path-to-driver",
S3OutputLocation = "location",
AwsRegion = "eu-west-1", AuthenticationType = "IAM Profile",
AWSProfile = "profile", Schema = "prod")
tbl(con,
# Run SQL query
sql('SELECT *
FROM TABLE')) %>%
# Without having collected the data, I could further wrangle the data inside the database
# using dplyr code
select(var1, var2) %>%
mutate(var3 = var1 + var2)
但是,现在使用 BigQuery 时出现以下错误
con <- DBI::dbConnect(bigrquery::bigquery(),
project = "project")
tbl(con,
sql(
'SELECT *
FROM TABLE'
))
Error: dataset is not a string (a length one character vector).
知道 BigQuery 是否无法完成我想做的事情吗?
【问题讨论】:
标签: r dplyr google-bigquery dbplyr