{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-superset/issues/5316","repository_url":"https://api.github.com/repos/apache/incubator-superset","labels_url":"https://api.github.com/repos/apache/incubator-superset/issues/5316/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-superset/issues/5316/comments","events_url":"https://api.github.com/repos/apache/incubator-superset/issues/5316/events","html_url":"https://github.com/apache/incubator-superset/issues/5316","id":336881481,"node_id":"MDU6SXNzdWUzMzY4ODE0ODE=","number":5316,"title":"World map not rendering with TypeError: unhashable type: 'dict'","user":{"login":"xrmx","id":12932,"node_id":"MDQ6VXNlcjEyOTMy","avatar_url":"https://avatars1.githubusercontent.com/u/12932?v=4","gravatar_id":"","url":"https://api.github.com/users/xrmx","html_url":"https://github.com/xrmx","followers_url":"https://api.github.com/users/xrmx/followers","following_url":"https://api.github.com/users/xrmx/following{/other_user}","gists_url":"https://api.github.com/users/xrmx/gists{/gist_id}","starred_url":"https://api.github.com/users/xrmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrmx/subscriptions","organizations_url":"https://api.github.com/users/xrmx/orgs","repos_url":"https://api.github.com/users/xrmx/repos","events_url":"https://api.github.com/users/xrmx/events{/privacy}","received_events_url":"https://api.github.com/users/xrmx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T06:42:11Z","updated_at":"2018-07-02T22:53:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Make sure these boxes are checked before submitting your issue - thank you!\r\n\r\n- [x] I have checked the superset logs for python stacktraces and included it here as text if any\r\n- [x] I have reproduced the issue with at least the latest released version of superset\r\n- [x] I have checked the issue tracker for the same issue and I haven't found one similar\r\n\r\n\r\n### Superset version\r\n\r\n0.25.6\r\n\r\n### Expected results\r\n\r\nworld map is rendered correctly\r\n\r\n### Actual results\r\n\r\n```\r\n  File \"/home/stats/superset/superset/views/core.py\", line 1107, in generate_json\r\n    payload = viz_obj.get_payload()\r\n  File \"/home/stats/superset/superset/viz.py\", line 329, in get_payload\r\n    payload['data'] = self.get_data(df)\r\n  File \"/home/stats/superset/superset/viz.py\", line 1664, in get_data\r\n    ndf = df[cols]\r\n  File \"/home/stats/venv36/lib/python3.6/site-packages/pandas/core/frame.py\", line 2133, in __getitem__\r\n    return self._getitem_array(key)\r\n  File \"/home/stats/venv36/lib/python3.6/site-packages/pandas/core/frame.py\", line 2177, in _getitem_array\r\n    indexer = self.loc._convert_to_indexer(key, axis=1)\r\n  File \"/home/stats/venv36/lib/python3.6/site-packages/pandas/core/indexing.py\", line 1256, in _convert_to_indexer\r\n    indexer = check = labels.get_indexer(objarr)\r\n  File \"/home/stats/venv36/lib/python3.6/site-packages/pandas/core/indexes/base.py\", line 2702, in get_indexer\r\n    indexer = self._engine.get_indexer(target._values)\r\n  File \"pandas/_libs/index.pyx\", line 291, in pandas._libs.index.IndexEngine.get_indexer\r\n  File \"pandas/_libs/hashtable_class_helper.pxi\", line 1317, in pandas._libs.hashtable.PyObjectHashTable.lookup\r\nTypeError: unhashable type: 'dict'\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nCreate a world map where the color metrics is a SUM of a numeric field."},"comment":{"url":"https://api.github.com/repos/apache/incubator-superset/issues/comments/401961369","html_url":"https://github.com/apache/incubator-superset/issues/5316#issuecomment-401961369","issue_url":"https://api.github.com/repos/apache/incubator-superset/issues/5316","id":401961369,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTk2MTM2OQ==","user":{"login":"davidhassan","id":1705367,"node_id":"MDQ6VXNlcjE3MDUzNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1705367?v=4","gravatar_id":"","url":"https://api.github.com/users/davidhassan","html_url":"https://github.com/davidhassan","followers_url":"https://api.github.com/users/davidhassan/followers","following_url":"https://api.github.com/users/davidhassan/following{/other_user}","gists_url":"https://api.github.com/users/davidhassan/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhassan/subscriptions","organizations_url":"https://api.github.com/users/davidhassan/orgs","repos_url":"https://api.github.com/users/davidhassan/repos","events_url":"https://api.github.com/users/davidhassan/events{/privacy}","received_events_url":"https://api.github.com/users/davidhassan/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T22:53:40Z","updated_at":"2018-07-02T22:53:40Z","author_association":"CONTRIBUTOR","body":"I think this is a serious issue with most of the metric fields fields. I believe there are similar issues open related to \"TypeError: unhashable type: 'dict'\"."}}
{"actor":{"display_login":"davidhassan"}}