查询文本指定use_legacy_sql:false,而API选项指定:true [英] Query text specifies use_legacy_sql:false, while API options specify:true

查看:243
本文介绍了查询文本指定use_legacy_sql:false,而API选项指定:true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  library(bigrquery)
project< - < p& /项目名>中


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


结果< - query_exec(sql,project = project,useLegacySql = FALSE)

运行R脚本时出现以下错误:

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

有什么想法可能会发生在这里?我认为它是 use_legacy_sql = FALSE (注意下划线,而不是camelcase)

请参阅在这里


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.

这篇关于查询文本指定use_legacy_sql:false,而API选项指定:true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆