Skip to content

Commit 2d63c58

Browse files
committed
fix
1 parent 424bdbd commit 2d63c58

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

packages/cubejs-schema-compiler/src/adapter/BaseQuery.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,9 @@ export class BaseQuery {
572572
*/
573573
countAllQuery(sql) {
574574
return `select count(*) ${this.escapeColumnName(QueryAlias.TOTAL_COUNT)
575-
} from (\n${sql
576-
}\n) ${this.escapeColumnName(QueryAlias.ORIGINAL_QUERY)
577-
}`;
575+
} from (\n${sql
576+
}\n) ${this.escapeColumnName(QueryAlias.ORIGINAL_QUERY)
577+
}`;
578578
}
579579

580580
regularAndTimeSeriesRollupQuery(regularMeasures, multipliedMeasures, cumulativeMeasures, preAggregationForQuery) {
@@ -1953,7 +1953,7 @@ export class BaseQuery {
19531953
), inlineWhereConditions);
19541954

19551955
return `SELECT ${this.selectAllDimensionsAndMeasures(measures)} FROM ${query
1956-
} ${this.baseWhere(filters.concat(inlineWhereConditions))}` +
1956+
} ${this.baseWhere(filters.concat(inlineWhereConditions))}` +
19571957
(!this.safeEvaluateSymbolContext().ungrouped && this.groupByClause() || '');
19581958
}
19591959

@@ -2103,7 +2103,7 @@ export class BaseQuery {
21032103
)
21042104
), inlineWhereConditions);
21052105
return `SELECT DISTINCT ${this.keysSelect(primaryKeyDimensions)} FROM ${query
2106-
} ${this.baseWhere(filters.concat(inlineWhereConditions))}`;
2106+
} ${this.baseWhere(filters.concat(inlineWhereConditions))}`;
21072107
}
21082108

21092109
keysSelect(primaryKeyDimensions) {
@@ -3825,7 +3825,7 @@ export class BaseQuery {
38253825
sql: `${refreshKeyQuery.nowTimestampSql()} < ${updateWindow ?
38263826
refreshKeyQuery.addTimestampInterval(dateTo, updateWindow) :
38273827
dateTo
3828-
}`,
3828+
}`,
38293829
label: originalRefreshKey
38303830
}]);
38313831
}

packages/cubejs-schema-compiler/test/integration/postgres/sql-generation.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,18 +3443,18 @@ SELECT 1 AS revenue, cast('2024-01-01' AS timestamp) as time UNION ALL
34433443
cubeEvaluator: joinedSchemaCompilers.cubeEvaluator,
34443444
compiler: joinedSchemaCompilers.compiler,
34453445
},
3446-
{
3447-
measures: ['B.bval_sum', 'B.count'],
3448-
dimensions: ['B.aid'],
3449-
filters: [{
3450-
member: 'C.did',
3451-
operator: 'lt',
3452-
values: ['10']
3453-
}],
3454-
order: [{
3455-
'B.bval_sum': 'desc'
3456-
}]
3457-
});
3446+
{
3447+
measures: ['B.bval_sum', 'B.count'],
3448+
dimensions: ['B.aid'],
3449+
filters: [{
3450+
member: 'C.did',
3451+
operator: 'lt',
3452+
values: ['10']
3453+
}],
3454+
order: [{
3455+
'B.bval_sum': 'desc'
3456+
}]
3457+
});
34583458
const sql = query.buildSqlAndParams();
34593459
return dbRunner
34603460
.testQuery(sql)

0 commit comments

Comments
 (0)