Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordering using natural string order comparison #6807

Closed
wants to merge 1 commit into from

Conversation

madsbk
Copy link
Contributor

@madsbk madsbk commented Nov 5, 2020

Now that the scheduler does the task ordering, we need to order key strings natual when tie-breaking in order.order():

 "('name', 1)" < "('name', 10)"
  • Tests added / passed
  • Passes black dask / flake8 dask

HACK: we zerofill 9 decimals, which should be enough in all but extreme cases.
"""
value = str(match.group())[2:]
return value.zfill(9)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it might be expensive. I recommend that we wait on this for a bit.

@madsbk madsbk closed this Feb 16, 2021
@madsbk madsbk deleted the order_using_zfill branch February 16, 2021 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants