【问题标题】:Query text specifies use_legacy_sql:false, while API options specify:true查询文本指定 use_legacy_sql:false,而 API 选项指定:true
【发布时间】:2017-09-18 09:00:51
【问题描述】:

我正在使用带有 bigrquery 的标准 SQL:

library(bigrquery)
project <- "</project-name>"


sql <- "
#standardSQL
SELECT
</sql-query>;"


result <- query_exec(sql, project = project, useLegacySql = FALSE)

当我运行 R 脚本时,我收到以下错误:

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

有什么想法吗?

【问题讨论】:

    标签: r google-bigquery bigrquery


    【解决方案1】:

    我认为是use_legacy_sql = FALSE(注意下划线,不是驼峰式)

    here

    【讨论】:

      【解决方案2】:

      您只需在“隐藏选项”中取消选中“使用旧版 sql”即可。 这是截图:

      【讨论】:

      • 这是一个 API 问题,不是 UI 问题
      猜你喜欢
      • 2019-04-23
      • 1970-01-01
      • 2019-06-14
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多