Skip to content

Commit

Permalink
sort by key in $columns macros
Browse files Browse the repository at this point in the history
  • Loading branch information
r.khavronenko committed Nov 17, 2017
1 parent 8ce6c69 commit e40e2b2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/clickhouse-info.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/clickhouse-info.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/sql_query.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sql_query.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/sql_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class SqlQuery {
query = SqlQuery.rate(query, ast);
}
} catch (err) {
console.log("Parse error: ", err);
throw {message: 'AST parser error: ' + err.message};
}

query = this.templateSrv.replace(query, options.scopedVars, SqlQuery.interpolateQueryExpr);
Expand Down Expand Up @@ -105,7 +105,7 @@ export default class SqlQuery {
fromQuery +
' GROUP BY t, ' + keyAlias +
' ' + having +
' ORDER BY t' +
' ORDER BY t, ' + keyAlias +
') ' +
'GROUP BY t ' +
'ORDER BY t';
Expand Down
4 changes: 2 additions & 2 deletions src/sql_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class SqlQuery {
query = SqlQuery.rate(query, ast);
}
} catch (err) {
console.log("Parse error: ", err);
throw {message: 'AST parser error: ' + err.message};
}

query = this.templateSrv.replace(query, options.scopedVars, SqlQuery.interpolateQueryExpr);
Expand Down Expand Up @@ -105,7 +105,7 @@ export default class SqlQuery {
fromQuery +
' GROUP BY t, ' + keyAlias +
' ' + having +
' ORDER BY t' +
' ORDER BY t, ' + keyAlias +
') ' +
'GROUP BY t ' +
'ORDER BY t';
Expand Down

0 comments on commit e40e2b2

Please sign in to comment.