mirror of https://github.com/apache/superset.git
[bugfix] numeric value for date fields in table viz (#3036)
Bug was present only when using the NOT GROUPED BY option fixes https://github.com/ApacheInfra/superset/issues/3027
This commit is contained in:
parent
4268513653
commit
0ec9cd4ad2
|
@ -353,6 +353,12 @@ class TableViz(BaseViz):
|
|||
columns=list(df.columns),
|
||||
)
|
||||
|
||||
def json_dumps(self, obj):
|
||||
if self.form_data.get('all_columns'):
|
||||
return json.dumps(obj, default=utils.json_iso_dttm_ser)
|
||||
else:
|
||||
return super(TableViz, self).json_dumps(obj)
|
||||
|
||||
|
||||
class PivotTableViz(BaseViz):
|
||||
|
||||
|
|
Loading…
Reference in New Issue