issue_comments
30 rows where issue = 333312849 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- why time grouping doesn't preserve chunks · 30 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1126847735 | https://github.com/pydata/xarray/issues/2237#issuecomment-1126847735 | https://api.github.com/repos/pydata/xarray/issues/2237 | IC_kwDOAMm_X85DKlT3 | dcherian 2448579 | 2022-05-15T02:44:06Z | 2022-05-15T02:44:06Z | MEMBER | Fixed on main with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
789078512 | https://github.com/pydata/xarray/issues/2237#issuecomment-789078512 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDc4OTA3ODUxMg== | dcherian 2448579 | 2021-03-02T17:29:51Z | 2021-03-02T18:03:17Z | MEMBER | I think the behaviour in Ryan's most recent comment is a consequence of groupby.mean being
I think the fundamental question is: Is it really possible for dask to recognize that the chunk structure after the We can explicitly ask for consolidation of chunks by saying the output should be chunked Then if we set Can we make dask recognize that the 5 getitem tasks from input-chunk-0, at the bottom of each tower, can be fused to a single task? In that case, fuse the 5 getitem tasks and "propagate" that fusion up the tower. I guess another failure here is that when |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
789090356 | https://github.com/pydata/xarray/issues/2237#issuecomment-789090356 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDc4OTA5MDM1Ng== | dcherian 2448579 | 2021-03-02T17:48:01Z | 2021-03-02T17:48:47Z | MEMBER | Reading up on fusion, the docstring says
So we need the opposite : fuse "single input, multiple output" to a single task when some appropriate heuristic is satisfied. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
620961663 | https://github.com/pydata/xarray/issues/2237#issuecomment-620961663 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDYyMDk2MTY2Mw== | rabernat 1197350 | 2020-04-29T02:45:28Z | 2020-04-29T02:45:28Z | MEMBER | I'm reviving this classic issue to report another quasi-failure of dask chunking, this time in the opposite direction. Consider this dataset:
There are just two big chunks. Now let's try to take an "annual mean" using resample
Now we have a chunksize of 1 and 10 chunks. That's bad: we should still just have two chunks, since we are aggregating only within chunks. Taken to the limit of very high temporal resolution, this example will blow up in terms of number of tasks. I wish dask could figure out that it doesn't have to create all those tasks. The graph looks like this
In contrast,
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
482275708 | https://github.com/pydata/xarray/issues/2237#issuecomment-482275708 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDQ4MjI3NTcwOA== | rabernat 1197350 | 2019-04-11T19:37:05Z | 2019-04-11T19:37:05Z | MEMBER | We had a long iteration on this in Pangeo, and big progress was made in dask. Definitely closed for now. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
482274302 | https://github.com/pydata/xarray/issues/2237#issuecomment-482274302 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDQ4MjI3NDMwMg== | shoyer 1217238 | 2019-04-11T19:32:33Z | 2019-04-11T19:32:33Z | MEMBER | The original issue has been fixed, at least in the toy example: ```
I don't know if it's still an issue in more realistic scenarios. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
482241098 | https://github.com/pydata/xarray/issues/2237#issuecomment-482241098 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDQ4MjI0MTA5OA== | dcherian 2448579 | 2019-04-11T18:22:41Z | 2019-04-11T18:22:41Z | MEMBER | Can this be closed or is there something to do on the xarray side now that dask/dask#3648 has been merged? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398838600 | https://github.com/pydata/xarray/issues/2237#issuecomment-398838600 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODgzODYwMA== | mrocklin 306380 | 2018-06-20T17:48:49Z | 2018-06-20T17:48:49Z | MEMBER | I've implemented something here: https://github.com/dask/dask/pull/3648 Playing with it would be welcome. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398597356 | https://github.com/pydata/xarray/issues/2237#issuecomment-398597356 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU5NzM1Ng== | rabernat 1197350 | 2018-06-20T01:42:55Z | 2018-06-20T01:42:55Z | MEMBER | I'm glad to see that this has generated so much serious discussion and thought! I will try to catch up on it in the morning when I have some hope of understanding. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398592643 | https://github.com/pydata/xarray/issues/2237#issuecomment-398592643 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU5MjY0Mw== | shoyer 1217238 | 2018-06-20T01:10:04Z | 2018-06-20T01:10:04Z | MEMBER |
Maybe it helps to think about these as matrices. The nth row of
Yes, this is definitely a shuffle. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398586226 | https://github.com/pydata/xarray/issues/2237#issuecomment-398586226 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4NjIyNg== | mrocklin 306380 | 2018-06-20T00:26:39Z | 2018-06-20T00:26:39Z | MEMBER | Thanks. This example helps.
I'm not sure I understand this. The situation on the whole does seem sensible to me though. This starts to look a little bit like a proper shuffle situation (using dataframe terminology). Each of your 365 output partitions would presumably touch 1/12th of your input partitions, leading to a quadratic number of tasks. If after doing something you then wanted to rearrange your data back then presumably that would require an equivalent number of extra tasks. Am I understanding the situation correctly? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398584002 | https://github.com/pydata/xarray/issues/2237#issuecomment-398584002 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4NDAwMg== | shoyer 1217238 | 2018-06-20T00:11:33Z | 2018-06-20T00:11:33Z | MEMBER |
No worries, this is indeed, pretty confusing! For suppose N is the number of years of datalist_of_group_indices = [ [0, 365, 730, ..., (N-1)365], # day 1, ordered by year [1, 366, 731, ..., (N-1)365 + 1], # day 2, ordered by year ... ] indices_to_restore_orig_order = [ 0, N, 2N, 3N, ..., # year 1, ordered by day 1, N+1, 2N+1, 3N+1, ..., # year 2, ordered by day ... ] ``` As you can see, if you concatenate together the first set of indices and index by the second set of indices, it would arrange them into sequential integers. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398582100 | https://github.com/pydata/xarray/issues/2237#issuecomment-398582100 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4MjEwMA== | mrocklin 306380 | 2018-06-19T23:59:58Z | 2018-06-19T23:59:58Z | MEMBER | So if you're willing to humor me for a moment with dask.array examples, if you have an array that's currently partitioned by month:
And you do something by |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398581618 | https://github.com/pydata/xarray/issues/2237#issuecomment-398581618 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4MTYxOA== | shoyer 1217238 | 2018-06-19T23:57:03Z | 2018-06-19T23:57:03Z | MEMBER | Some sort of automatic rechunking could also make a big difference for performance, in cases where the groupby operation splits the original chunks into small pieces (like my |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398581508 | https://github.com/pydata/xarray/issues/2237#issuecomment-398581508 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4MTUwOA== | mrocklin 306380 | 2018-06-19T23:56:22Z | 2018-06-19T23:56:22Z | MEMBER | So my question was "if you're grouping data by month, and it's already partitioned by month, then why are the indices out of order?" However it may be that you've answer this in your most recent comment, I'm not sure. It may also be that I'm not understanding the situation. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398580421 | https://github.com/pydata/xarray/issues/2237#issuecomment-398580421 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU4MDQyMQ== | shoyer 1217238 | 2018-06-19T23:49:16Z | 2018-06-19T23:50:12Z | MEMBER | Another option would be to rewrite how xarray does groupby/transform operations to make it more dask friendly. Currently it looks roughly like:
For example, we could reverse the order of the last two steps. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398579480 | https://github.com/pydata/xarray/issues/2237#issuecomment-398579480 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU3OTQ4MA== | shoyer 1217238 | 2018-06-19T23:43:18Z | 2018-06-19T23:43:32Z | MEMBER |
Assuming the original array is chunked into one file per year-month (which is probably a reasonable starting point):
- For the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398577207 | https://github.com/pydata/xarray/issues/2237#issuecomment-398577207 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU3NzIwNw== | mrocklin 306380 | 2018-06-19T23:29:37Z | 2018-06-19T23:29:37Z | MEMBER |
Maybe. We'll blow out the scheduler with too many tasks. With one large task we'll probably just start losing workers from memory errors. In your example what does the chunking of the indexed array likely to look like? How is the interaction between contiguous regions of the index and the chunk structure of the indexed array? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398575742 | https://github.com/pydata/xarray/issues/2237#issuecomment-398575742 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU3NTc0Mg== | shoyer 1217238 | 2018-06-19T23:21:10Z | 2018-06-19T23:21:10Z | MEMBER | Here's an example of what these indices look like for a slightly more realistic groupby example: ```python import xarray import pandas import numpy as np array = xarray.DataArray( range(1000), [('time', pandas.date_range('2000-01-01', freq='D', periods=1000))]) this works with xarray 0.10.7xarray.core.groupby._inverse_permutation_indices(
array.groupby('time.month')._group_indices)
I think it would work with the "put contiguous index regions into the same chunk" heuristic. On the other hand, this could break pretty badly for other group-by operations, e.g., calculating those anomalies by day of year instead:
This looks like @mrocklin's second case. That said, it's still probably more graceful to fail by creating too many small tasks rather than one giant task. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398575620 | https://github.com/pydata/xarray/issues/2237#issuecomment-398575620 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU3NTYyMA== | mrocklin 306380 | 2018-06-19T23:20:23Z | 2018-06-19T23:20:23Z | MEMBER | It's also probably worth thinking about the kind of operations you're trying to do, and how streamable they are. For example, if you were to take a dataset that was partitioned chronologically by month and then do some sort of day-of-month grouping then that would require the full dataset to be in memory at once. If you're doing something like grouping on every month (keeping months of different years separate) then presumably your index is already sorted, and so you should be fine with the current behavior. It might be useful to take a look at how the various XArray cases you care about convert to dask array slicing operations. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398573000 | https://github.com/pydata/xarray/issues/2237#issuecomment-398573000 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODU3MzAwMA== | mrocklin 306380 | 2018-06-19T23:03:53Z | 2018-06-19T23:03:53Z | MEMBER | OK, so lowering down to a dask array conversation, lets look at a couple examples. First, lets look at the behavior of a sorted index: ```python import dask.array as da x = da.ones((20, 20), chunks=(4, 5)) x.chunks ((4, 4, 4, 4, 4), (5, 5, 5, 5))``` If we index that array with a sorted index, we are able to efficiently preserve chunking: ```python import numpy as np x[np.arange(20), :].chunks ((4, 4, 4, 4, 4), (5, 5, 5, 5))x[np.arange(20) // 2, :].chunks ((8, 8, 4), (5, 5, 5, 5))``` However if the index isn't sorted then everything goes into one big chunk: ```python x[np.arange(20) % 3, :].chunks ((20,), (5, 5, 5, 5))``` We could imagine a few alternatives here:
I don't really have a strong intuition for how the xarray operations transform into dask array operations (my brain is a bit tired right now, so thinking is hard) but my guess is that they would benefit from the second case. (A pure dask.array example would be welcome). Now we have to consider how enacting a policy like "put contiguous index regions into the same chunk" might go wrong, and how we might defend against it generally.
In the example above we have a hundred input chunks and a hundred contiguous regions in our index. Seems good. However each output chunk touches each input chunk, so this will likely create 10,000 tasks, which we should probably consider a fail case here. So we learn that we need to look pretty carefully at how the values within the index interact with the chunk structure in order to know if we can do this well. This isn't an insurmountable problem, but isn't trivial either. In principle we're looking for a function that takes in two inputs:
And outputs a bunch of smaller indexes to pass on to various chunks. However, it hopefully does this in a way that is efficient, and fails early if it's going to emit a bunch of very small slices. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398240724 | https://github.com/pydata/xarray/issues/2237#issuecomment-398240724 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODI0MDcyNA== | rabernat 1197350 | 2018-06-19T00:57:44Z | 2018-06-19T00:57:44Z | MEMBER | With groupby in xarray, we have two main cases:
Case 2 seems similar to @shoyer's example: If the chunk size before reindexing is not 1, then yes, one needs to do something more sophisticated. But I would argue that, if the array is being re-indexed along a dimension in which the chunk size is 1, a sensible default behavior would be to avoid aggregating into a big chunk and instead just pass the original chunks though in a new order. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398218407 | https://github.com/pydata/xarray/issues/2237#issuecomment-398218407 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODIxODQwNw== | mrocklin 306380 | 2018-06-18T22:43:25Z | 2018-06-18T22:43:25Z | MEMBER | I think that it would be useful to consider many possible cases of how people might want to chunk dask arrays with out-of-order indices, and the desired chunking outputs. XArray users like those here can provide some of those use cases. We'll have to gather others from other communities. Maybe once we have enough use cases gathered then rules for what correct behavior should be will emerge? On Mon, Jun 18, 2018 at 5:16 PM Stephan Hoyer notifications@github.com wrote:
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398198466 | https://github.com/pydata/xarray/issues/2237#issuecomment-398198466 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE5ODQ2Ng== | shoyer 1217238 | 2018-06-18T21:16:24Z | 2018-06-18T21:16:24Z | MEMBER | I vaguely recall discussing chunks that result from indexing somewhere in the dask issue tracker (when we added the special case for a monotonic increasing indexer to preserve chunks), but I can't find it now. I think the challenge is that it isn't obvious what the right chunksizes should be. Chunks that are too small also have negative performance implications. Maybe the automatic chunking logic that @mrocklin has been looking into recently would be relevant here. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398158656 | https://github.com/pydata/xarray/issues/2237#issuecomment-398158656 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE1ODY1Ng== | rabernat 1197350 | 2018-06-18T18:55:08Z | 2018-06-18T18:55:08Z | MEMBER | Thanks for the explanation @shoyer! Yes, that appears to be the root of the issue. After literally years of struggling with this, I am happy to finally get to this level of clarity.
Do we think dask is happy with that behavior? If not, then an upstream fix would be best. Pinging @mrocklin. Otherwise we can try to work around in xarray. |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398157337 | https://github.com/pydata/xarray/issues/2237#issuecomment-398157337 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE1NzMzNw== | shoyer 1217238 | 2018-06-18T18:50:39Z | 2018-06-18T18:50:48Z | MEMBER | The source of the indexing operation that brings all the chunks together is the So basically the issue comes down to indexing with dask.array, which creates a single chunk when integers indices are not all in order: ``` import dask.array as da import numpy as np x = da.ones(4, chunks=1) print(x[np.arange(4)]) dask.array<getitem, shape=(4,), dtype=float64, chunksize=(1,)>print(x[np.arange(4)[::-1]]) dask.array<getitem, shape=(4,), dtype=float64, chunksize=(4,)>``` As a work-around in xarray, we could use explicit indexing + concatenation. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398156747 | https://github.com/pydata/xarray/issues/2237#issuecomment-398156747 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE1Njc0Nw== | rabernat 1197350 | 2018-06-18T18:48:34Z | 2018-06-18T18:48:34Z | MEMBER | And just because it's fun, I will show what the anomaly calculation looks like
It looks like everything is really ok up until the very end, where all the tasks aggregate into a single |
{ "total_count": 2, "+1": 0, "-1": 0, "laugh": 2, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398152064 | https://github.com/pydata/xarray/issues/2237#issuecomment-398152064 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE1MjA2NA== | rabernat 1197350 | 2018-06-18T18:32:42Z | 2018-06-18T18:32:42Z | MEMBER | I agree that single value chunks illustrates the problem more clearly. I think this example is most clean if you do it like this
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398150381 | https://github.com/pydata/xarray/issues/2237#issuecomment-398150381 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE1MDM4MQ== | rabernat 1197350 | 2018-06-18T18:27:08Z | 2018-06-18T18:27:08Z | MEMBER |
One way to answer that is the following: Here is the dask graph for Here is the dask graph for |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 | |
398141909 | https://github.com/pydata/xarray/issues/2237#issuecomment-398141909 | https://api.github.com/repos/pydata/xarray/issues/2237 | MDEyOklzc3VlQ29tbWVudDM5ODE0MTkwOQ== | fmaussion 10050469 | 2018-06-18T17:58:54Z | 2018-06-18T18:00:19Z | MEMBER | Nice write up @rabernat ! Note that the behavior is the same with chunks of size 1 (first thing I tried). Short understanding question: while your example shows that chunks are lost after the groupby, does that prove for sure that the groupby operation does not use the original chunks? (side note: the quest for climatologies is a rightful quest: see my comment about the cds) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
why time grouping doesn't preserve chunks 333312849 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 5