查询文本指定use_legacy_sql:false,而API选项指定:true

时间:2017-09-18 09:00:52

标签: r google-bigquery bigrquery

我正在使用带有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"

任何想法可能会在这里发生什么?

2 个答案:

答案 0 :(得分:2)

我认为它是SelectedIndex(注意下划线,而不是camelcase)

请参阅enter image description here

答案 1 :(得分:0)

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

enter image description here