Skip to content

Commit a89f8ad

Browse files
committed
Update test
1 parent f458c7c commit a89f8ad

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/cubejs-druid-driver/src/DruidQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class DruidFilter extends BaseFilter {
1818
const s = (!type || type === 'contains' || type === 'starts') ? '%' : '';
1919
return `LOWER(${column})${not ? ' NOT' : ''} LIKE CONCAT('${p}', LOWER(${this.allocateParam(param)}), '${s}')`;
2020
}
21-
2221
}
2322

2423
export class DruidQuery extends BaseQuery {

packages/cubejs-druid-driver/test/druid-query.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('DruidQuery', () => {
3232
type: 'time',
3333
}
3434
}
35-
35+
3636
})
3737
`, {});
3838

@@ -54,7 +54,7 @@ describe('DruidQuery', () => {
5454
},
5555
);
5656
const queryAndParams = query.buildSqlAndParams();
57-
expect(queryAndParams[0]).toContain('LIKE CONCAT(\'%\', ?, \'%\'))');
57+
expect(queryAndParams[0]).toContain('LIKE CONCAT(\'%\', LOWER(?), \'%\'))');
5858
}));
5959

6060
it('druid query timezone shift test', () => compiler.compile().then(() => {

0 commit comments

Comments
 (0)