Skip to content

Commit

Permalink
[hotfix] add regex for druid filters (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored Feb 27, 2017
1 parent e91bc9d commit 227c66c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ const defaultProps = {
export default class Filter extends React.Component {
constructor(props) {
super(props);
const filterOps = props.datasource.type === 'table' ?
['in', 'not in'] : ['==', '!=', 'in', 'not in', 'regex'];
this.opChoices = this.props.having ? ['==', '!=', '>', '<', '>=', '<=']
: ['in', 'not in'];
: filterOps;
}
fetchFilterValues(col) {
if (!this.props.datasource) {
Expand Down

0 comments on commit 227c66c

Please sign in to comment.