bigrquery 中的标准 SQL [英] Standard SQL in bigrquery
本文介绍了bigrquery 中的标准 SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 R 的 bigrquery
从 BigQuery 获取一些数据到 R 会话的包.但是,我的查询是用 BigQuery 的 Standard SQL 编写的,而不是其旧版 SQL 方言.我如何告诉包使用标准而不是旧版 SQL 运行查询?
I'm trying to use R's bigrquery
package to get some data from BigQuery into an R session. However, my query is written in BigQuery's Standard SQL rather than its legacy SQL dialect. How do I tell the package to run the query using Standard rather than legacy SQL?
推荐答案
见下例
insert_query_job <- function(query, project, destination_table = NULL,
default_dataset = NULL,
create_disposition = "CREATE_IF_NEEDED",
write_disposition = "WRITE_EMPTY",
useLegacySql = FALSE)
这篇关于bigrquery 中的标准 SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文