diff --git a/panoramix/models.py b/panoramix/models.py index 0146ea3e6..2204a08c9 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -439,6 +439,8 @@ class Table(Model, Queryable, AuditMixinNullable): 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)