Decimal is a valid numeric type (#2720)

* Decimal is a valid numeric type

This will allow automatic creation of sum__ and avg__ metrics

* formatting for line length at 80 chars

* Reformating again, for the mandatory 79 chars maximum.
This commit is contained in:
Boris Hajduk 2017-05-09 13:19:52 +08:00 committed by Maxime Beauchemin
parent 9e1272e97c
commit 5d0a01d0d0

View File

@ -168,7 +168,10 @@ class BaseColumn(AuditMixinNullable, ImportMixin):
def __repr__(self):
return self.column_name
num_types = ('DOUBLE', 'FLOAT', 'INT', 'BIGINT', 'LONG', 'REAL', 'NUMERIC')
num_types = (
'DOUBLE', 'FLOAT', 'INT', 'BIGINT',
'LONG', 'REAL', 'NUMERIC', 'DECIMAL'
)
date_types = ('DATE', 'TIME', 'DATETIME')
str_types = ('VARCHAR', 'STRING', 'CHAR')