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 legacy sql" at the "hide options". Here is the screenshot:



来源:https://stackoverflow.com/questions/46275367/query-text-specifies-use-legacy-sqlfalse-while-api-options-specifytrue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!