Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 509
Rory Newton Avatar asked Sep 18 '17 09:09

Rory Newton


1 Answers

I think it's use_legacy_sql = FALSE (note the underscores, not camelcase)

See here.

like image 183
Graham Polley Avatar answered Oct 04 '22 03:10

Graham Polley