{"database": "github", "table": "issue_comments", "is_view": false, "human_description_en": "where user = 17001470 sorted by updated_at descending", "rows": [["https://github.com/pydata/xarray/pull/5045#issuecomment-847695616", "https://api.github.com/repos/pydata/xarray/issues/5045", 847695616, "MDEyOklzc3VlQ29tbWVudDg0NzY5NTYxNg==", 17001470, "2021-05-25T09:08:59Z", "2021-05-25T09:08:59Z", "CONTRIBUTOR", "I guess we should also add this feature to the documentation, right?", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-847694996", "https://api.github.com/repos/pydata/xarray/issues/5045", 847694996, "MDEyOklzc3VlQ29tbWVudDg0NzY5NDk5Ng==", 17001470, "2021-05-25T09:08:14Z", "2021-05-25T09:08:14Z", "CONTRIBUTOR", "Thanks for your help @max-sixty and @shoyer!", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-832950273", "https://api.github.com/repos/pydata/xarray/issues/5045", 832950273, "MDEyOklzc3VlQ29tbWVudDgzMjk1MDI3Mw==", 17001470, "2021-05-05T19:27:00Z", "2021-05-05T19:27:10Z", "CONTRIBUTOR", "> could you also resolve the merge conflicts? It seems we can't \"approve and run\" the CI with conflicts.\r\n\r\nOk I resolved them", "{\"total_count\": 1, \"+1\": 1, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-832887625", "https://api.github.com/repos/pydata/xarray/issues/5045", 832887625, "MDEyOklzc3VlQ29tbWVudDgzMjg4NzYyNQ==", 17001470, "2021-05-05T17:49:35Z", "2021-05-05T17:49:35Z", "CONTRIBUTOR", "ok done\r\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-832854453", "https://api.github.com/repos/pydata/xarray/issues/5045", 832854453, "MDEyOklzc3VlQ29tbWVudDgzMjg1NDQ1Mw==", 17001470, "2021-05-05T16:57:06Z", "2021-05-05T16:57:06Z", "CONTRIBUTOR", "> `np.can_cast` with `casting='unsafe` can check this. It sounds like this would probably be something good to add to our checks :)\r\n\r\nI'm not sure how to use this, because `np.can_cast` with unsafe casting mostly returns True, e.g. `np.can_cast(str, float, casting=\"unsafe\")==True`. The error that is implemented in the tests would not be caught then. But I could explicitly try to cast the new values to the datatype of the original values with `.astype`. Would that be an option?\r\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-832838964", "https://api.github.com/repos/pydata/xarray/issues/5045", 832838964, "MDEyOklzc3VlQ29tbWVudDgzMjgzODk2NA==", 17001470, "2021-05-05T16:37:23Z", "2021-05-05T16:37:36Z", "CONTRIBUTOR", "> Could you kindly elaborate on this issue, maybe with a specific example?\r\n\r\nI think I somehow forgot the join=\"exact\" when testing the functionality of xr.align. So nevermind, I'll reimplement again. :P\r\n\r\n> `np.can_cast` with `casting='unsafe` can check this. It sounds like this would probably be something good to add to our checks :)\r\n\r\nOk good point. I'll give it a try.\r\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-832658072", "https://api.github.com/repos/pydata/xarray/issues/5045", 832658072, "MDEyOklzc3VlQ29tbWVudDgzMjY1ODA3Mg==", 17001470, "2021-05-05T12:45:53Z", "2021-05-05T12:45:53Z", "CONTRIBUTOR", "I revised the pre-assignment checks. In my opinion xr.align is not so helpful when checking that the dimension sizes and coordinates are consistent, because it doesn't fail when the dimension size of the two Datasets is different, but the coordinate of the second Dataset is a subset of the first one. Therefore, I reimplemented the check that I had previously in a similar way. I also added a check for the wrong order of the dimensions, that you mentioned @shoyer.\r\nIf, despite the checks, an error occurs during the assignment, e.g. due to a type error, and the dataset has been updated already partially, the user is informed about this.", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-831737517", "https://api.github.com/repos/pydata/xarray/issues/5045", 831737517, "MDEyOklzc3VlQ29tbWVudDgzMTczNzUxNw==", 17001470, "2021-05-04T07:26:35Z", "2021-05-04T07:26:35Z", "CONTRIBUTOR", "@shoyer thanks for your suggestions! I included them as best as I could.", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-831100015", "https://api.github.com/repos/pydata/xarray/issues/5045", 831100015, "MDEyOklzc3VlQ29tbWVudDgzMTEwMDAxNQ==", 17001470, "2021-05-03T08:11:39Z", "2021-05-03T08:11:39Z", "CONTRIBUTOR", "ok, I deleted the copy stuff and included a few checks to catch possible errors before setting the values. Did I miss anything? How do we check for \"type errors that don't coerce\", as you mentioned? \r\nThe setitem method of the LocIndexer now calls the setitem method of the Dataset class, so that we don't have redundant code.", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-829864953", "https://api.github.com/repos/pydata/xarray/issues/5045", 829864953, "MDEyOklzc3VlQ29tbWVudDgyOTg2NDk1Mw==", 17001470, "2021-04-30T06:10:56Z", "2021-04-30T06:10:56Z", "CONTRIBUTOR", "Calling  __getitem__ is not enough to detect all possible errors, I guess. Another possibility would be to do a deep copy before the assignments, and if anything goes wrong, restore the original data from the copy. In this way, the assignments do not have to be done twice unless an error appears.", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-822332988", "https://api.github.com/repos/pydata/xarray/issues/5045", 822332988, "MDEyOklzc3VlQ29tbWVudDgyMjMzMjk4OA==", 17001470, "2021-04-19T09:46:29Z", "2021-04-19T09:46:29Z", "CONTRIBUTOR", "I don't understand what's the issue of the failing test. Do you?\r\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-822263369", "https://api.github.com/repos/pydata/xarray/issues/5045", 822263369, "MDEyOklzc3VlQ29tbWVudDgyMjI2MzM2OQ==", 17001470, "2021-04-19T08:04:49Z", "2021-04-19T08:04:49Z", "CONTRIBUTOR", "ok I tried to include your suggestions. Concerning @shoyer's point 3: Since I guess there could be a lot of different errors appearing, I created a copy of the data to be changed to check if the setitem fails before doing the actual update. That's of course suboptimal concerning the performance. What do you think, should we include checks for all conceivable errors or keep this test update?", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859], ["https://github.com/pydata/xarray/pull/5045#issuecomment-801083363", "https://api.github.com/repos/pydata/xarray/issues/5045", 801083363, "MDEyOklzc3VlQ29tbWVudDgwMTA4MzM2Mw==", 17001470, "2021-03-17T13:32:46Z", "2021-03-17T13:32:46Z", "CONTRIBUTOR", "I haven't updated the documentation yet, where it says that this feature is not supported yet. Do you think we need example code for this feature in the documentation?", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859]], "truncated": false, "filtered_table_rows_count": 13, "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 \"user\" = :p0 order by updated_at desc limit 101", "params": {"p0": "17001470"}}, "facet_results": {"author_association": {"name": "author_association", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?user=17001470", "results": [{"value": "CONTRIBUTOR", "label": "CONTRIBUTOR", "count": 13, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=17001470&author_association=CONTRIBUTOR", "selected": false}], "truncated": false}, "user": {"name": "user", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?user=17001470", "results": [{"value": 17001470, "label": "matzegoebel", "count": 13, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json", "selected": true}], "truncated": false}, "issue": {"name": "issue", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?user=17001470", "results": [{"value": 833778859, "label": "Allow assigning values to a subset of a dataset", "count": 13, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=17001470&issue=833778859", "selected": false}], "truncated": false}}, "suggested_facets": [{"name": "reactions", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=17001470&_facet=reactions"}, {"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=17001470&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=17001470&_facet_date=updated_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 14.36477992683649}