【发布时间】:2018-02-26 20:48:52
【问题描述】:
当我运行此 R 脚本以从 BiqQuery 获取一些数据时,我收到错误 No matching signature for operator >= for argument types: STRING, INT64. Supported signatures: ANY >= ANY at [1:60]。
这是我得到错误的地方:
a <- dbGetQuery(db,
paste0("select * from dta.tbl where col1='",
somevariable"' and date>=",substr(gsub("\\D","",as.character(start.date)),3,8),
" and date<=",substr(gsub("\\D","",as.character(end.date)),3,8)))
关于如何消除此错误的任何线索?我这里用的是standardsql
先谢谢了! :)
【问题讨论】:
-
使用参数!
标签: sql r google-bigquery