mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[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),
|
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):
|
class PivotTableViz(BaseViz):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user