groupbys should be all lowercase

pull/10616/head
Jade McGough 2016-11-08 09:50:09 -08:00
parent 31b1ba5ca7
commit e77a981870
1 changed files with 2 additions and 2 deletions

View File

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