Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 2, 2015
1 parent f851d20 commit b1d009f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def sync_to_db(cls, name, cluster):
col_obj.filterable = True
if col_obj:
col_obj.type = cols[col]['type']
col_obj.datasource = datasource
col_obj.generate_metrics()
#session.commit()

Expand Down Expand Up @@ -199,7 +200,7 @@ def generate_metrics(self):
json=json.dumps({'type': 'count', 'name': 'count'})
))
# Somehow we need to reassign this for UDAFs
corrected_type = 'DOUBLE' if self.type in ('DOUBLE', 'FLOAT') else 'self.type'
corrected_type = 'DOUBLE' if self.type in ('DOUBLE', 'FLOAT') else self.type

if self.sum and self.isnum:
mt = corrected_type.lower() + 'Sum'
Expand Down

0 comments on commit b1d009f

Please sign in to comment.