We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f99cf commit b080384Copy full SHA for b080384
internal-packages/clickhouse/src/client/queryBuilder.ts
@@ -79,12 +79,12 @@ export class ClickhouseQueryBuilder<TOutput> {
79
if (this.whereClauses.length > 0) {
80
query += " WHERE " + this.whereClauses.join(" AND ");
81
}
82
- if (this.orderByClause) {
83
- query += ` ORDER BY ${this.orderByClause}`;
84
- }
85
if (this.groupByClause) {
86
query += ` GROUP BY ${this.groupByClause}`;
87
+ if (this.orderByClause) {
+ query += ` ORDER BY ${this.orderByClause}`;
+ }
88
if (this.limitClause) {
89
query += ` ${this.limitClause}`;
90
0 commit comments