Skip to content

Commit 1e29bb3

Browse files
authored
fix(databricks-driver): Uppercase filter values doesn't match in contains filter (#7067)
1 parent 3db1702 commit 1e29bb3

File tree

2 files changed

+341
-63
lines changed

2 files changed

+341
-63
lines changed

packages/cubejs-databricks-jdbc-driver/src/DatabricksQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DatabricksFilter extends BaseFilter {
1616
public likeIgnoreCase(column: any, not: any, param: any, type: string) {
1717
const p = (!type || type === 'contains' || type === 'ends') ? '%' : '';
1818
const s = (!type || type === 'contains' || type === 'starts') ? '%' : '';
19-
return `LOWER(${column})${not ? ' NOT' : ''} LIKE CONCAT('${p}', ${this.allocateParam(param)}, '${s}')`;
19+
return `LOWER(${column})${not ? ' NOT' : ''} LIKE CONCAT('${p}', LOWER(${this.allocateParam(param)}), '${s}')`;
2020
}
2121
}
2222

0 commit comments

Comments
 (0)