Skip to content

Fix bug with sketch joins and single keys#1451

Merged
isnotinvain merged 2 commits intodevelopfrom
oscar/fix-small-sketch
Nov 4, 2015
Merged

Fix bug with sketch joins and single keys#1451
isnotinvain merged 2 commits intodevelopfrom
oscar/fix-small-sketch

Conversation

@johnynek
Copy link
Collaborator

@johnynek johnynek commented Nov 4, 2015

This fixes the issue in #1218 and #1449 based on the contribution in #1450

The fix requires a minor change to the API, which should be source compatible for virtually everyone.

It also exposes two design flaws in algebird: 1) that we assume == works, so having a CMSHasher on Arrays is broken. 2) implicits for CMSHasher are not in the companion object, so they are annoying to use.

@johnynek
Copy link
Collaborator Author

johnynek commented Nov 4, 2015

@isnotinvain can you review?

@avibryant
Copy link
Contributor

LGTM, FWIW.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this explanation of the test. What is this testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't edit it properly. There was originally a normal join and a sketch join in the job, but I removed the normal join since it was just easier to assert the output was a particular thing. This particular input and output caused an exception before, so the fact that it is green now is a guard against a particular regression, but the message is not good. I'll update it.

isnotinvain added a commit that referenced this pull request Nov 4, 2015
Fix bug with sketch joins and single keys
@isnotinvain isnotinvain merged commit 12eb0db into develop Nov 4, 2015
@johnynek johnynek deleted the oscar/fix-small-sketch branch November 25, 2015 15:53
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.

4 participants