Skip to content

Commit

Permalink
Making sum metrics for numeric columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 25, 2015
1 parent 1d6d821 commit aea304d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ def fetch_metadata(self):
str(datatype).startswith('STRING')):
dbcol.groupby = True
dbcol.filterable = True
elif str(datatype).upper() in ('DOUBLE', 'FLOAT', 'INT', 'BIGINT'):
dbcol.sum = True
db.session.merge(self)
self.columns.append(dbcol)

Expand Down

0 comments on commit aea304d

Please sign in to comment.