Skip to content

Commit

Permalink
Decimal is a valid numeric type (#2720)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
hajdbo authored and mistercrunch committed May 9, 2017
1 parent 9e1272e commit 5d0a01d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/connectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 5d0a01d

Please sign in to comment.