bigrquery

How to authenticate in Google Big Query using Bigrquery without user input using a service account

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 09:52:32
问题 I need to run an R script using windows task scheduler, however the script includes an authentication to Big Query using Bigrquery. I have the service account authentication. When I run the script I'm asked for user input which doesn't let me run the script as scheduled. I get: The bigrquery package is requesting access to your Google account. Select a pre-authorised account or enter '0' to obtain a new token. Press Esc/Ctrl + C to abort 1. ("Account I've used to authenticate") Here my code:

Authentication issue with R's bigrquery

强颜欢笑 提交于 2021-02-10 17:16:28
问题 This post makes it clear that the function bq_auth() should be used to authenticate BigQuery in R. However, I have created a BigQuery-Admin service account, downloaded a service account key, and have passed that key into the bq_auth() function, yet I continue to receive the error: > bigrquery::bq_auth(path = '/Users/nicholas/Downloads/just_downladed_this_key.json') trying token_fetch() trying credentials_service_account() adding 'userinfo.email' scope Error: unable to load shared object '

Authentication issue with R's bigrquery

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-10 17:13:48
问题 This post makes it clear that the function bq_auth() should be used to authenticate BigQuery in R. However, I have created a BigQuery-Admin service account, downloaded a service account key, and have passed that key into the bq_auth() function, yet I continue to receive the error: > bigrquery::bq_auth(path = '/Users/nicholas/Downloads/just_downladed_this_key.json') trying token_fetch() trying credentials_service_account() adding 'userinfo.email' scope Error: unable to load shared object '

Authentication issue with R's bigrquery

人走茶凉 提交于 2021-02-10 17:05:47
问题 This post makes it clear that the function bq_auth() should be used to authenticate BigQuery in R. However, I have created a BigQuery-Admin service account, downloaded a service account key, and have passed that key into the bq_auth() function, yet I continue to receive the error: > bigrquery::bq_auth(path = '/Users/nicholas/Downloads/just_downladed_this_key.json') trying token_fetch() trying credentials_service_account() adding 'userinfo.email' scope Error: unable to load shared object '

How to load large datasets to R from BigQuery?

ぃ、小莉子 提交于 2019-12-08 07:17:03
问题 I have tried two ways with Bigrquery package such that library(bigrquery) library(DBI) con <- dbConnect( bigrquery::bigquery(), project = "YOUR PROJECT ID HERE", dataset = "YOUR DATASET" ) test<- dbGetQuery(con, sql, n = 10000, max_pages = Inf) and sql <- `YOUR LARGE QUERY HERE` #long query saved to View and its select here tb <- bigrquery::bq_project_query(project, sql) bq_table_download(tb, max_results = 1000) but failing to the error "Error: Requested Resource Too Large to Return

Query text specifies use_legacy_sql:false, while API options specify:true

跟風遠走 提交于 2019-12-07 06:08:41
问题 I'm using standardSQL with bigrquery: library(bigrquery) project <- "</project-name>" sql <- " #standardSQL SELECT </sql-query>;" result <- query_exec(sql, project = project, useLegacySql = FALSE) When I run the R script I get the following error: "Error: Query text specifies use_legacy_sql:false, while API options specify:true" Any ideas what might be going on here? 回答1: I think it's use_legacy_sql = FALSE (note the underscores, not camelcase) See here. 回答2: You just need to uncheck of "use

Query text specifies use_legacy_sql:false, while API options specify:true

二次信任 提交于 2019-12-05 10:46:35
I'm using standardSQL with bigrquery: library(bigrquery) project <- "</project-name>" sql <- " #standardSQL SELECT </sql-query>;" result <- query_exec(sql, project = project, useLegacySql = FALSE) When I run the R script I get the following error: "Error: Query text specifies use_legacy_sql:false, while API options specify:true" Any ideas what might be going on here? I think it's use_legacy_sql = FALSE (note the underscores, not camelcase) See here . Kostyantyn Yakymyshyn You just need to uncheck of "use legacy sql" at the "hide options". Here is the screenshot: 来源: https://stackoverflow.com