mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[hotfix] add regex for druid filters (#2288)
This commit is contained in:
parent
e91bc9dfcc
commit
227c66c2c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user