mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
[hotfix] add regex for druid filters (#2288)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user