Strangely - I am able to push InfluxData to BigQuery, but influx errors out when I’m trying to pull data.
Notably - Errors are quite unhelpful.
panic: runtime error: index out of range [0] with length 0
I assume means the query is returning 0 rows however when I run it in Bigquery, I get around 12 rows (a test table).
Playing around with different things I also get “an internal error has occured”. which doesn’t give me much to go on.
Querying through chronograph or api via postman makes no difference.
Here’s an example query.
import "sql"
sql.from(
driverName: "bigquery",
dataSourceName: "bigquery://xxxxxxxxx/US?credentials=ewogICJ0easdaXcnZasdasdWNjb3....",
query: "SELECT * FROM `xxx.Full_L12H` LIMIT 10",
)
*Credentials is a base 64 conversion of the service account JSON. With correct permissions settings (AFAIK)