mirror of https://github.com/apache/superset.git
Converting filter argument to number if column is number (#2891)
This commit is contained in:
parent
677c427b16
commit
62bd4eb211
|
@ -477,7 +477,9 @@ class SqlaTable(Model, BaseDatasource):
|
|||
if op == 'not in':
|
||||
cond = ~cond
|
||||
where_clause_and.append(cond)
|
||||
elif op == '==':
|
||||
if col_obj.is_num:
|
||||
eq = utils.string_to_num(flt['val'])
|
||||
if op == '==':
|
||||
where_clause_and.append(col_obj.sqla_col == eq)
|
||||
elif op == '!=':
|
||||
where_clause_and.append(col_obj.sqla_col != eq)
|
||||
|
|
Loading…
Reference in New Issue