I am running my BigQuery code in RStudio using bigrquery
package and one of the lines of the query contains a large list of integers (approx. 500 numbers).
The query runs perfectly on BigQuery but when I try to run the same in RStudio using the above said package, it throws me the following error:
Syntax error: Expected ")" or "," but got keyword GROUP at [180:1] [invalidQuery]
I believe the problem is due to the large list that I have written in the query because when I print my results without that list and filter out later using R
, it works perfectly but the only problem then is that I have to download large quantity of results (approx. 1.6M rows) which takes a lot of time.
Does anyone know a work around such problem? Thanks!