Skip to content

Commit 273d277

Browse files
mironovichKSDaemon
andauthored
fix(schema-compiler): Case insensitive filter for ClickHouse (#9373)
* Update ClickHouseQuery.ts lower() => lowerUTF8() * Update packages/cubejs-schema-compiler/src/adapter/ClickHouseQuery.ts Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com> --------- Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com>
1 parent 267ce43 commit 273d277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/ClickHouseQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ClickHouseFilter extends BaseFilter {
1818
public likeIgnoreCase(column, not, param, type) {
1919
const p = (!type || type === 'contains' || type === 'ends') ? '%' : '';
2020
const s = (!type || type === 'contains' || type === 'starts') ? '%' : '';
21-
return `lower(${column}) ${not ? 'NOT' : ''} LIKE CONCAT('${p}', lower(${this.allocateParam(param)}), '${s}')`;
21+
return `${column} ${not ? 'NOT' : ''} ILIKE CONCAT('${p}', ${this.allocateParam(param)}, '${s}')`;
2222
}
2323

2424
public castParameter() {

0 commit comments

Comments
 (0)