From aea304d8145814d0560562eb5176cbf92bfa6659 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 25 Sep 2015 16:18:31 -0700 Subject: [PATCH] Making sum metrics for numeric columns --- panoramix/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panoramix/models.py b/panoramix/models.py index 0146ea3e6d58a..2204a08c96fd7 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -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)