Skip to content

Commit

Permalink
showing NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalyan Kanuri committed Jul 27, 2016
1 parent 504e44e commit 136139a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,8 +1410,8 @@ 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':
#allows setting filter to query that value of dimension is NULL
if eq == 'NULL':
eq = None
cond = Dimension(col) == eq
if op == 'not in':
Expand Down
2 changes: 1 addition & 1 deletion caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_df(self, query_obj=None):
if self.datasource.offset:
df.timestamp += timedelta(hours=self.datasource.offset)
df.replace([np.inf, -np.inf], np.nan)
df = df.fillna(0)
df = df.fillna('NULL')
return df

@property
Expand Down

0 comments on commit 136139a

Please sign in to comment.