groupBy needs to be joined by a comma

pull/10616/head
Jade McGough 2016-11-08 08:11:54 -08:00
parent 1ffa00dc16
commit d99abaa04a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export const LayoutRenderer = React.createClass({
const qs = cell.queries.map((q) => {
_.merge(q, {host: source});
if (q.groupBys && q.groupBys.length > 0) {
q.text += ` group by ${q.groupBys.join(' ')}`;
q.text += ` group by ${q.groupBys.join(',')}`;
}
q.text += ` where host = '${host}' and time > ${timeRange}`;
return q;