diff --git a/superset-frontend/src/visualizations/FilterBox/FilterBox.jsx b/superset-frontend/src/visualizations/FilterBox/FilterBox.jsx index d90781ba0560b..8a5a867fd3fc0 100644 --- a/superset-frontend/src/visualizations/FilterBox/FilterBox.jsx +++ b/superset-frontend/src/visualizations/FilterBox/FilterBox.jsx @@ -223,10 +223,10 @@ class FilterBox extends React.PureComponent { ? [ { clause: 'WHERE', - comparator: null, - expressionType: 'SQL', - // TODO: Evaluate SQL Injection risk - sqlExpression: `lower(${key}) like '%${input}%'`, + expressionType: 'SIMPLE', + subject: key, + operator: 'ILIKE', + comparator: `%${input}%`, }, ] : null,