sql - 如何将数据从连接到 Google 表格的 BigQuery 表中提取到 R 中
问题描述
我已成功从来自 CSV 的 BigQuery 表中提取数据。但是,当我尝试使用相同的步骤从来自 Google 表格的 BigQuery 中提取数据时,我收到以下错误:
Error: Error while reading table: testprojectanintroductiontogcp.Demo.SheetsDemo, error message: Failed to read the spreadsheet. Error code: PERMISSION_DENIED [invalid]
这是我的代码:
project_id <- "testprojectanintroductiontogcp"
sql_string <- "SELECT * FROM testprojectanintroductiontogcp.Demo.SheetsDemo LIMIT 5"
query_results <- query_exec(sql_string, project = project_id, useLegacySql = FALSE)
readr
并bigrquery
安装软件包。
如何访问来自 Google 表格的数据表?
解决方案
推荐阅读
- r - ggplot aes:alpha 得到“平滑”
- go - 检查证书有效期
- reactjs - 在将数据发布到 API 之前,将日期格式化为“YYYY-MM-DD”,Redux-Saga
- ios - Xamarin.iOS 应用在 Testflight 上的 iOS13 上启动时崩溃
- gremlin - Gremlin 查询以选择实体中的公共属性
- ms-access - MS Access 应用程序需要登录用户/密码
- xml - XML 中的 XPath 包含具有两个值的元素
- php - 如何在wordpress上传递通过CF7提交的表单的字段值?
- javascript - 我应该如何声明一个具有 setInterval 值的变量?
- c - 如何在 vscode 中正确包含带有 msvc 的头文件?