Closed connorourke closed 1 year ago
Have you tried SELECT sum(amount) AS award_metric from awards
?
Yes! That works. Thank you.
Can you explain why the original query doesn't?
I guess from https://github.com/albertodonato/query-exporter/issues/149 if I were to install from git, not pip I would get a bit more information as to what the issue was?
The original query was aliasing the query itself, not the column, so the column name in that case was still "sum"
Describe the bug
I am testing using query-exporter but when executing a query I get:
query-exporter - query "query2" on database "db2" failed: Wrong column names from query
Installation details
To Reproduce
I am using the folloiwing config file:
I can connect to the data.db and run the query
SELECT sum(amount) from awards AS award_metric
fine with sqlite3.Any idea why I am getting this error?