-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
distsql: small fixes (debug logs, hash join encoding problem) #12119
distsql: small fixes (debug logs, hash join encoding problem) #12119
Conversation
2e63621
to
8675177
Compare
Reviewed 5 of 5 files at r1, 1 of 1 files at r2, 2 of 2 files at r3. Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file):
wait I don't understand this. if you look at what pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file):
this is from Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file): Previously, irfansharif (irfan sharif) wrote…
Yeah. In the future, we can add a function that compares VALUE encodings ignoring any column difference (in most cases it would come down to just skipping the first byte or something like that). pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file): Previously, irfansharif (irfan sharif) wrote…
You are assuming that this particular code always creates the encoding, but the whole point of Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file): Previously, RaduBerinde wrote…
got it. pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file): Previously, RaduBerinde wrote…
right, I think it's worth adding this as a TODO for. Comments from Reviewable |
It looks like the VALUE encodings are not unique (they contain a column ID) so they shouldn't be used for equality testing in hash joins.
8675177
to
d45ad26
Compare
Review status: 6 of 7 files reviewed at latest revision, all discussions resolved. pkg/sql/distsql/hashjoiner.go, line 245 at r3 (raw file): Previously, irfansharif (irfan sharif) wrote…
Done. Comments from Reviewable |
Reviewed 5 of 5 files at r1, 2 of 2 files at r3, 1 of 1 files at r4. Comments from Reviewable |
See individual commits.
This change is