Skip to content

Commit 95f02d6

Browse files
authored
Update ClickHouseQuery.ts lower() => lowerUTF8()
1 parent e1a1f02 commit 95f02d6

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 `lowerUTF8(${column}) ${not ? 'NOT' : ''} LIKE CONCAT('${p}', lowerUTF8(${this.allocateParam(param)}), '${s}')`;
2222
}
2323

2424
public castParameter() {

0 commit comments

Comments
 (0)