mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
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:
parent
9e1272e97c
commit
5d0a01d0d0
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user