-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed of Date to epoch time in Table view - Superset - 0.25.6 #5182
Comments
@rohanagg I remember that this issue had been reported multiple times by now. However, I haven't looked up whether it has been fixed meanwhile and happened to reappear, or if your report is a duplicate. Could you do the research, please? |
I'm having the same problem with the timestamp types and Table views This problem is reported in the issue #3027 for the "NOT GROUPED BY" colums, but in my case I'm selecting a timestamp value in the group by. Anyway without grouping by date the problem persists. However, with a Distribution - Bar Chart , the format of the date is correct |
+1 |
1 similar comment
+1 |
Issue still exists in Version 26.3.. Table view shows date in epoch format.. While it is solved in case of Pivot view Are we doing anything to cater such things in future versions. Our company runs on Superset but because of such issues it becomes hectic for business owner to get attached to Superset as a visualisation tool |
Can someone help here. As it is becoming blocker for day to day activity and we are not able to superset to latest version |
+1 |
A temporary solution is casting the date to string. We create an additional dimension with this expression |
Still present in 0.29. It is caused by this commit Basically datetime date field gets formatted by BaseViz.json_dumps that uses json_int_dttm_ser serializer which turns date into epoch. @mistercrunch I guess that commit fixed non grouped options, but in turn broke grouped. def json_dumps(self, obj, sort_keys=False):
return json.dumps(
obj,
default=utils.json_iso_dttm_ser,
sort_keys=sort_keys,
ignore_nan=True
) in tableviz ? |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.25.6
Expected results
Expected result in 0.17.6 is :
Actual results
Actual result which I am getting in 0.25.6 is :
Steps to reproduce
Open the slice and select the table view.
In the group by select any column with date as datatype
select any metric against it.
Output is epoch time against the metric
The text was updated successfully, but these errors were encountered: