Skip to content

Commit a81ca35

Browse files
authored
fix(databricks-driver): using the ILIKE operator in the DatabricksFilter.likeIgnoreCase method (cube-js#5334)
1 parent 27ec3a2 commit a81ca35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 `${column}${not ? ' NOT' : ''} LIKE CONCAT('${p}', ${this.allocateParam(param)}, '${s}')`;
19+
return `${column}${not ? ' NOT' : ''} ILIKE CONCAT('${p}', ${this.allocateParam(param)}, '${s}')`;
2020
}
2121
}
2222

0 commit comments

Comments
 (0)