{"database": "github", "table": "issue_comments", "is_view": false, "human_description_en": "where issue = 371990138 and user = 5635139 sorted by updated_at descending", "rows": [["https://github.com/pydata/xarray/issues/2495#issuecomment-431973631", "https://api.github.com/repos/pydata/xarray/issues/2495", 431973631, "MDEyOklzc3VlQ29tbWVudDQzMTk3MzYzMQ==", 5635139, "2018-10-22T20:32:48Z", "2018-10-22T20:32:48Z", "MEMBER", "Confirmed as fixed:\r\n\r\n```python\r\n\r\nIn [1]: import xarray\r\nimpor\r\nIn [2]: import numpy\r\n\r\nIn [3]: xarray.DataArray(numpy.arange(3), dims=(\"x\",), coords={\"x\": {\"a\", \"b\", \"c\"}})\r\n   ...:\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-3-6d18e1623a15> in <module>\r\n----> 1 xarray.DataArray(numpy.arange(3), dims=(\"x\",), coords={\"x\": {\"a\", \"b\", \"c\"}})\r\n\r\n~/workspace/xarray/xarray/core/dataarray.py in __init__(self, data, coords, dims, name, attrs, encoding, fastpath)\r\n    225\r\n    226             data = as_compatible_data(data)\r\n--> 227             coords, dims = _infer_coords_and_dims(data.shape, coords, dims)\r\n    228             variable = Variable(dims, data, attrs, encoding, fastpath=True)\r\n    229\r\n\r\n~/workspace/xarray/xarray/core/dataarray.py in _infer_coords_and_dims(shape, coords, dims)\r\n     62     if utils.is_dict_like(coords):\r\n     63         for k, v in coords.items():\r\n---> 64             new_coords[k] = as_variable(v, name=k)\r\n     65     elif coords is not None:\r\n     66         for dim, coord in zip(dims, coords):\r\n\r\n~/workspace/xarray/xarray/core/variable.py in as_variable(obj, name)\r\n     88     elif isinstance(obj, (set, dict)):\r\n     89         raise TypeError(\r\n---> 90             \"variable %r has invalid type %r\" % (name, type(obj)))\r\n     91     elif name is not None:\r\n     92         data = as_compatible_data(obj)\r\n\r\nTypeError: variable 'x' has invalid type <class 'set'>\r\n```\r\n\r\nThe original issue is https://github.com/pydata/xarray/issues/1691, and includes why we raise rather than coerce to an array", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 371990138], ["https://github.com/pydata/xarray/issues/2495#issuecomment-431490100", "https://api.github.com/repos/pydata/xarray/issues/2495", 431490100, "MDEyOklzc3VlQ29tbWVudDQzMTQ5MDEwMA==", 5635139, "2018-10-19T20:30:54Z", "2018-10-19T20:30:54Z", "MEMBER", "I thought I fixed this. Please can you try on the latest version? Or I'll look when by a computer", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 371990138]], "truncated": false, "filtered_table_rows_count": 2, "expanded_columns": [], "expandable_columns": [[{"column": "issue", "other_table": "issues", "other_column": "id"}, "title"], [{"column": "user", "other_table": "users", "other_column": "id"}, "login"]], "columns": ["html_url", "issue_url", "id", "node_id", "user", "created_at", "updated_at", "author_association", "body", "reactions", "performed_via_github_app", "issue"], "primary_keys": ["id"], "units": {}, "query": {"sql": "select html_url, issue_url, id, node_id, user, created_at, updated_at, author_association, body, reactions, performed_via_github_app, issue from issue_comments where \"issue\" = :p0 and \"user\" = :p1 order by updated_at desc limit 101", "params": {"p0": "371990138", "p1": "5635139"}}, "facet_results": {"author_association": {"name": "author_association", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=371990138&user=5635139", "results": [{"value": "MEMBER", "label": "MEMBER", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=371990138&user=5635139&author_association=MEMBER", "selected": false}], "truncated": false}, "user": {"name": "user", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=371990138&user=5635139", "results": [{"value": 5635139, "label": "max-sixty", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=371990138", "selected": true}], "truncated": false}, "issue": {"name": "issue", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=371990138&user=5635139", "results": [{"value": 371990138, "label": "Confusing error message when using a set to pass coordinates", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=5635139", "selected": true}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=371990138&user=5635139&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=371990138&user=5635139&_facet_date=updated_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 668.747479096055}