You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A 1.0 release denotes some level of expected stability for a project. So in my mind, missing components for a 1.0 release fall into two categories:
Missing core functionality
Anticipated major API changes
If dask is mostly feature complete and there are no anticipated major changes, then it would make sense to issue a 1.0 release now. This is probably already the case, unless you want to entertain major refactoring of core functionality like #2299.
That said, dask has tended to favor development speed over maintaining backwards compatibility with old versions. With a 1.0 release, this might need to change, at least for stable parts of the code base.
One of the things I've been thinking about has been how we seem to have two ways to do Python threaded work.
A user can choose to just use Dask (w/o Distributed) or they can use Dask w/Distributed, but request that no additional processes be created. These seem to be overlapping quite a bit (though maybe not enough ;) and it might be better to just pick one. If we do pick one, we'd want to do that before 1.0 as it would be a breaking change. Though perhaps there is a way to ease into this choice.
Naively would suggest we drop the Dask (w/o Distributed) case. This would allow users and developers to be reasonably confident that there is always some Client working and would give guarantees about what dask.get and friends mean, which is a nice guarantee in loads of cases. Though maybe there are reasons not to go this way (e.g. circular dependency).
Happy to move this to an issue and/or milestone if it sounds interesting to discuss and/or we want to do it.
@jakirkham I agree, the duplication between dask and dask-distributed for threaded computation is unfortunate. Distributed is likely strictly more functional and some of those functions would be welcome for core Dask collections (e.g., #3235), but it comes at the price of more required dependencies (Dask itself works with little more than the standard library).
I have a suggestion :
If you can introduce temporary variables in dask dataframe it will be more useful when used as an ETL.
Sample Scenario:
Select a list of columns from source data frame
natural_keys = [col1, col2, ...]
Apply MD5 function after merging all columns as string and add to temp column the source dataframe ie source_df.cdc
Select same set of columns from target data frame
Apply MD5 function after merging all columns as string and add to the target dataframe
ie.target_df.cdc
Compare the cdc column between source and target data frame and set a temp column to specify flag
like value not matching : 'U' (update)
value matching : 'NA' (Ignore)
target.cdc is null : 'I' (Insert)
6)Delete target df where source df.flag = 'U'
7)Load source df with flag = 'I' and 'U' to target df
In above scenario step 2,4 and 5 needs to have a temp variable and no need to save its value in hard disk .
As you can see the variables saves memory too since data is compared using hashed string rather than complete data set
Thanks for the thought @lijose . Can I ask that we move that particular feature request to a separate issue? I would like to avoid getting too detailed in this issue if possible.
I agree, the duplication between dask and dask-distributed for threaded computation is unfortunate. Distributed is likely strictly more functional and some of those functions would be welcome for core Dask collections (e.g., #3235), but it comes at the price of more required dependencies (Dask itself works with little more than the standard library).
It's true, @shoyer. Though I think there is some value gained by getting to the bottom of this. Even if the conclusion is we only copy a few things around in the end. Have moved this to issue ( #3237 ) so we can discuss further.
@jcrist@TomAugspurger@jakirkham and I met in person and discussed this issue. Two issues arose that would be good to fix before a major release
A configuration system that did a better job of centralizing configuration to be accessible in a single place while also allowing better extensibility Configuration files #3367
Replacing the get= keyword with names like threads, processes, synchronous, and distributed
Haha yeah, @mrocklin and I had a fun chat about alternatives to 0ver at AnacondaCON. I guess I like offering up CalVer as an option to take under consideration, especially for larger applications with a bigger API surface area that is better taken holistically.
The site kind of speaks for itself, so I'll summarize very briefly: there's definitely precedent at all levels of project (Ubuntu 16.04, C++ 11, Fortran 77, manylinux) and it works really well for software with multiple concurrently-supported versions, as a lot of larger/business applications end up having.
Happy to answer questions or help with version scheme design. Keep up the good work toward a major release!
Note that the two previously mentioned blocking issues, configuration and replacing get= are implemented in pending pull requests. I plan to issue a bugfix release soon, then merge those PRs so that they're in master for a while, and then probably issue another 0.X.0 release with deprecations before releasing 1.0.0. If there are any other hard constraints to this process I encourage people to speak up.
Should we include dropping dask.array.learn? We could make a separate patch release, 0.17.6, that adds a big warning to that file encouraging users to move to dask-ml.
Would add that we should flip token and name in map_blocks. These do the opposite thing from what a user would expect (though there are historical reasons for it). 1.0.0 would be a good opportunity to fix this sort of issue since it is a breaking change.
Edit: We may also consider renaming token to name and deprecating the current behavior of name.
Heh, fair enough :)
I would also be very happy to defer to someone else if they wanted to write
up the 1.0 blogpost. Honestly I think that having other people than me
write that would also be a pretty positive signal in line with that message.
On Fri, Nov 2, 2018 at 6:03 PM Stephan Hoyer <[email protected]>
wrote:
I'm also in favor of a 1.0 release. I agree with @shoyer that it would be a good marketing opportunity for Dask. Also, it's subjective, but it seems a little unnatural to me to skip ahead to 2.X
I haven't really been able to improve on the draft blogpost at dask/dask-blog#4. We can still celebrate the release as marking a major milestone and all that, but I think that the tone of the post accurately reflects the state of the project.
Also, just verifying, but I can just tag something as 1.0.0.rc1 and push that to PyPI right? There aren't any special flags when creating an rc/dev/beta build?
Activity
shoyer commentedon Feb 28, 2018
A 1.0 release denotes some level of expected stability for a project. So in my mind, missing components for a 1.0 release fall into two categories:
If dask is mostly feature complete and there are no anticipated major changes, then it would make sense to issue a 1.0 release now. This is probably already the case, unless you want to entertain major refactoring of core functionality like #2299.
That said, dask has tended to favor development speed over maintaining backwards compatibility with old versions. With a 1.0 release, this might need to change, at least for stable parts of the code base.
jakirkham commentedon Mar 1, 2018
One of the things I've been thinking about has been how we seem to have two ways to do Python threaded work.
A user can choose to just use Dask (w/o Distributed) or they can use Dask w/Distributed, but request that no additional processes be created. These seem to be overlapping quite a bit (though maybe not enough ;) and it might be better to just pick one. If we do pick one, we'd want to do that before 1.0 as it would be a breaking change. Though perhaps there is a way to ease into this choice.
Naively would suggest we drop the Dask (w/o Distributed) case. This would allow users and developers to be reasonably confident that there is always some Client working and would give guarantees about what
dask.getand friends mean, which is a nice guarantee in loads of cases. Though maybe there are reasons not to go this way (e.g. circular dependency).Happy to move this to an issue and/or milestone if it sounds interesting to discuss and/or we want to do it.
shoyer commentedon Mar 1, 2018
@jakirkham I agree, the duplication between dask and dask-distributed for threaded computation is unfortunate. Distributed is likely strictly more functional and some of those functions would be welcome for core Dask collections (e.g., #3235), but it comes at the price of more required dependencies (Dask itself works with little more than the standard library).
lijose commentedon Mar 1, 2018
I have a suggestion :
If you can introduce temporary variables in dask dataframe it will be more useful when used as an ETL.
Sample Scenario:
natural_keys = [col1, col2, ...]
ie.target_df.cdc
like value not matching : 'U' (update)
value matching : 'NA' (Ignore)
target.cdc is null : 'I' (Insert)
6)Delete target df where source df.flag = 'U'
7)Load source df with flag = 'I' and 'U' to target df
In above scenario step 2,4 and 5 needs to have a temp variable and no need to save its value in hard disk .
As you can see the variables saves memory too since data is compared using hashed string rather than complete data set
mrocklin commentedon Mar 1, 2018
Thanks for the thought @lijose . Can I ask that we move that particular feature request to a separate issue? I would like to avoid getting too detailed in this issue if possible.
Thanks!
jakirkham commentedon Mar 1, 2018
It's true, @shoyer. Though I think there is some value gained by getting to the bottom of this. Even if the conclusion is we only copy a few things around in the end. Have moved this to issue ( #3237 ) so we can discuss further.
lijose commentedon Mar 1, 2018
@mrocklin Kindly do the necessary.
Thank you for considering my suggestion
mrocklin commentedon Apr 10, 2018
@jcrist @TomAugspurger @jakirkham and I met in person and discussed this issue. Two issues arose that would be good to fix before a major release
get=keyword with names like threads, processes, synchronous, and distributedmrocklin commentedon Apr 10, 2018
Also cc @mahmoud who had thoughs on moving away from zero based versioning
mahmoud commentedon Apr 14, 2018
Haha yeah, @mrocklin and I had a fun chat about alternatives to 0ver at AnacondaCON. I guess I like offering up CalVer as an option to take under consideration, especially for larger applications with a bigger API surface area that is better taken holistically.
The site kind of speaks for itself, so I'll summarize very briefly: there's definitely precedent at all levels of project (Ubuntu 16.04, C++ 11, Fortran 77, manylinux) and it works really well for software with multiple concurrently-supported versions, as a lot of larger/business applications end up having.
Happy to answer questions or help with version scheme design. Keep up the good work toward a major release!
mrocklin commentedon May 2, 2018
Note that the two previously mentioned blocking issues, configuration and replacing get= are implemented in pending pull requests. I plan to issue a bugfix release soon, then merge those PRs so that they're in master for a while, and then probably issue another 0.X.0 release with deprecations before releasing 1.0.0. If there are any other hard constraints to this process I encourage people to speak up.
jakirkham commentedon Jun 7, 2018
Should we include dropping
dask.array.learn? We could make a separate patch release, 0.17.6, that adds a big warning to that file encouraging users to move todask-ml.cc @TomAugspurger
TomAugspurger commentedon Jun 7, 2018
jakirkham commentedon Jun 8, 2018
Ok, added PR ( #3580 ) to just drop it.
jakirkham commentedon Jun 11, 2018
Would add that we should flip
tokenandnameinmap_blocks. These do the opposite thing from what a user would expect (though there are historical reasons for it). 1.0.0 would be a good opportunity to fix this sort of issue since it is a breaking change.Edit: We may also consider renaming
tokentonameand deprecating the current behavior ofname.15 remaining items
mrocklin commentedon Nov 2, 2018
jrbourbeau commentedon Nov 2, 2018
I'm also in favor of a 1.0 release. I agree with @shoyer that it would be a good marketing opportunity for Dask. Also, it's subjective, but it seems a little unnatural to me to skip ahead to 2.X
TomAugspurger commentedon Nov 12, 2018
I haven't really been able to improve on the draft blogpost at dask/dask-blog#4. We can still celebrate the release as marking a major milestone and all that, but I think that the tone of the post accurately reflects the state of the project.
mrocklin commentedon Nov 21, 2018
I plan to push a 1.0 pre-release to PyPI on Friday, let it simmer until Monday or Tuesday, and then push.
mrocklin commentedon Nov 21, 2018
Also, just verifying, but I can just tag something as 1.0.0.rc1 and push that to PyPI right? There aren't any special flags when creating an rc/dev/beta build?
shoyer commentedon Nov 21, 2018
jakirkham commentedon Nov 21, 2018
Would it be possible to hold off until next week after the holiday?
mrocklin commentedon Nov 22, 2018
mrocklin commentedon Nov 22, 2018
mrocklin commentedon Nov 26, 2018
OK, I'm inclined to just push a 1.0.0 release directly at this point. If there are no objections then i'd like to do this Tuesday or Wednesday.
mrocklin commentedon Nov 26, 2018
The latest micro-release seems to be good, and there hasn't been much churn since then.
TomAugspurger commentedon Nov 26, 2018
mrocklin commentedon Nov 28, 2018
Releasing 1.0.0 to PyPI in one hour if there are no objections
mrocklin commentedon Nov 28, 2018
Pushed dask/dask 1.0.0 and dask/distributed 1.25.0 to PyPI