Skip to content

Commit 2c1b4ab

Browse files
committed
fix lint
1 parent 7b51994 commit 2c1b4ab

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) {
@@ -1888,7 +1888,7 @@ export class BaseQuery {
18881888
), inlineWhereConditions);
18891889

18901890
return `SELECT ${this.selectAllDimensionsAndMeasures(measures)} FROM ${query
1891-
} ${this.baseWhere(filters.concat(inlineWhereConditions))}` +
1891+
} ${this.baseWhere(filters.concat(inlineWhereConditions))}` +
18921892
(!this.safeEvaluateSymbolContext().ungrouped && this.groupByClause() || '');
18931893
}
18941894

@@ -2019,7 +2019,7 @@ export class BaseQuery {
20192019
)
20202020
), inlineWhereConditions);
20212021
return `SELECT DISTINCT ${this.keysSelect(primaryKeyDimensions)} FROM ${query
2022-
} ${this.baseWhere(filters.concat(inlineWhereConditions))}`;
2022+
} ${this.baseWhere(filters.concat(inlineWhereConditions))}`;
20232023
}
20242024

20252025
keysSelect(primaryKeyDimensions) {
@@ -3737,7 +3737,7 @@ export class BaseQuery {
37373737
sql: `${refreshKeyQuery.nowTimestampSql()} < ${updateWindow ?
37383738
refreshKeyQuery.addTimestampInterval(dateTo, updateWindow) :
37393739
dateTo
3740-
}`,
3740+
}`,
37413741
label: originalRefreshKey
37423742
}]);
37433743
}

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
@@ -3438,18 +3438,18 @@ SELECT 1 AS revenue, cast('2024-01-01' AS timestamp) as time UNION ALL
34383438
cubeEvaluator: joinedSchemaCompilers.cubeEvaluator,
34393439
compiler: joinedSchemaCompilers.compiler,
34403440
},
3441-
{
3442-
measures: ['B.bval_sum', 'B.count'],
3443-
dimensions: ['B.aid'],
3444-
filters: [{
3445-
member: 'C.did',
3446-
operator: 'lt',
3447-
values: ['10']
3448-
}],
3449-
order: [{
3450-
'B.bval_sum': 'desc'
3451-
}]
3452-
});
3441+
{
3442+
measures: ['B.bval_sum', 'B.count'],
3443+
dimensions: ['B.aid'],
3444+
filters: [{
3445+
member: 'C.did',
3446+
operator: 'lt',
3447+
values: ['10']
3448+
}],
3449+
order: [{
3450+
'B.bval_sum': 'desc'
3451+
}]
3452+
});
34533453
const sql = query.buildSqlAndParams();
34543454
return dbRunner
34553455
.testQuery(sql)

0 commit comments

Comments
 (0)