yuguang commented on issue #6986: BUG: Time series Line chart has broken
URL: 
https://github.com/apache/incubator-superset/issues/6986#issuecomment-476437544
 
 
   @villebro I tried out 0.31 RC It still has the same `__timestamp` bug when 
using Snowflake with Time-series bar charts. This is the detailed error report:
   ```
   Traceback (most recent call last):
     File "/home/superset/superset/views/base.py", line 114, in wraps
       return f(self, *args, **kwargs)
     File "/home/superset/superset/views/core.py", line 1229, in explore_json
       samples=samples,
     File "/home/superset/superset/views/core.py", line 1160, in generate_json
       payload = viz_obj.get_payload()
     File "/home/superset/superset/viz.py", line 375, in get_payload
       payload['data'] = self.get_data(df)
     File "/home/superset/superset/viz.py", line 1223, in get_data
       df = self.process_data(df)
     File "/home/superset/superset/viz.py", line 1143, in process_data
       values=self.metric_labels)
     File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 
5303, in pivot_table
       margins_name=margins_name)
     File 
"/usr/local/lib/python3.6/site-packages/pandas/core/reshape/pivot.py", line 86, 
in pivot_table
       grouped = data.groupby(keys, observed=False)
     File "/usr/local/lib/python3.6/site-packages/pandas/core/generic.py", line 
6665, in groupby
       observed=observed, **kwargs)
     File 
"/usr/local/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 
2152, in groupby
       return klass(obj, by, **kwds)
     File 
"/usr/local/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 
599, in __init__
       mutated=self.mutated)
     File 
"/usr/local/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 
3291, in _get_grouper
       raise KeyError(gpr)
   KeyError: '__timestamp'
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to