[hotfix] add regex for druid filters (#2288)

This commit is contained in:
vera-liu 2017-02-27 11:12:47 -08:00 committed by GitHub
parent e91bc9dfcc
commit 227c66c2c5

View File

@ -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) {