I have the following code in DataLab notebook:
import google.datalab.bigquery as bq
%bq query
SELECT count(id) FROM 'rtda.tweets'
It returns the error:
invalidQuery: Syntax error: Unexpected string literal 'rtda.tweets' at [1:23]
The BiqQuery table schema is correctly returned the by bigquery schema command:
%bigquery schema --table "rtda.tweets"
name type mode description
created_at TIMESTAMP NULLABLE
id INTEGER NULLABLE
id_str STRING NULLABLE
(...)
In BigQuery console I am able to successfully execute the query:
SELECT count(id) FROM [rtda.tweets];
The problem is that I am not able to execute this command in DataLab notebook.