Comments (10)
cc @phofl
from dask.
Related to dask-contrib/dask-expr#526
from dask.
I am fine with switching to keep=None, I am also fine with warning if the user gives anything other than the default for keep and we would default to p2p shuffle, but I am -1 on choosing task based shuffling without the user specifically requesting it in these scenarios. Users should actively request tasks
from dask.
but I am -1 on choosing task based shuffling without the user specifically requesting it in these scenarios. Users should actively request tasks
Yeah, I suppose can understand that. I do think it is best to use the "stable" shuffle algorithm unless the user explicitly asks for "tasks". In that case, my only suggestion would be to warn the user that the results are likely to be "wrong" (as you already mentioned).
from dask.
@hendrikmakait with similar indexing foo as for arrays we should be able to make P2P stable, shouldn't we?
from dask.
Sure, guaranteed ordering is definitely possible. I'm not sure if indexing foo is sufficient or if we also need to make changes to guarantee ordering within shards but we can look into this.
from dask.
or if we also need to make changes to guarantee ordering within shards but we can look into this.
It seems like the groupby-based sharing should should preserve ordering on its own, no?
If there is motivation to avoid any modifications to the general "p2p" logic, what about the naive approach of (optionally) adding a "__source_partition"
column before the shuffle? If the shards themselves are ordered, then a uint16 column is probably all you need to sort the output partitions in most cases.
from dask.
It seems like the groupby-based sharing should should preserve ordering on its own, no?
How do you mean?
from dask.
How do you mean?
Sorry, I'm probably "thinking out loud" a bit too much. I was mis-remembering that the initial "sharding" in shuffle_transfer
/split_by_worker
was groupby based.
from dask.
For the drop_duplicates I believe there is a simple way to fix this, see #10722 (I may need to be a little more careful about when that sort is appropriate but I think it's not harmful)
I opened dask/distributed#8421 to discuss the possibility to make P2P stable but I don't consider this high prio right now
from dask.
Related Issues (20)
- Rewrite docs landing page HOT 1
- CI Failing on windows 3.11 HOT 9
- PR Labeler failing HOT 3
- Docs build failing
- DEPR: pandas 3.0 deprecations and the migration to dask-expr
- Unexpected Results Caused by BigInt ID in numpy linspace HOT 1
- Add a `.__wrapped__` (or similar) attribute for `@dask.delayed`-decorated functions HOT 3
- Unstable grouping result when calling groupby apply on merged dask dataframes with missing values HOT 3
- `isinstance(Future, Future)` evaluates to `False` HOT 1
- linalg.solve has unexpected TypeError with cupy HOT 3
- Applying `functools.partial()` to a `@delayed`-decorated function changes the execution behavior HOT 1
- `read_parquet` doesn't handle nested objects (dicts, arrays) HOT 1
- Docs page for dask.dataframe.to_parquet doesn't include None option for compression param
- Nice visual for docs page HOT 4
- `test_split_adaptive_aggregate_files` failing on main HOT 4
- Deprecate ``shuffle`` keyword in favour of ``shuffle_method`` for DataFrame methods HOT 5
- Deprecate fastparquet engine for read_parquet to enable switch to dask-expr HOT 1
- Boolean logic with shift seems broken
- Setup unit test overview and test report HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dask.