Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalyan Kanuri committed Jul 27, 2016
1 parent f43e5f1 commit 504e44e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,9 @@ def get_filters(raw_filters):
fields.append(Dimension(col) == s)
cond = Filter(type="or", fields=fields)
else:
#allows setting filter to query that value of dimension is null
if eq == 'null' or eq == 'NULL':
eq = None
cond = Dimension(col) == eq
if op == 'not in':
cond = ~cond
Expand Down

0 comments on commit 504e44e

Please sign in to comment.