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

fix(join): return error if user modifies group key #4933

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

scbrickley
Copy link
Contributor

Return an error if a user defines an as function that returns a record that is missing a group key column.

Fixes #4909

@scbrickley scbrickley requested a review from a team as a code owner June 28, 2022 16:12
@scbrickley scbrickley requested review from skartikey and a team and removed request for a team June 28, 2022 16:12
@scbrickley scbrickley requested a review from a team as a code owner June 28, 2022 17:26
@scbrickley scbrickley requested review from noramullen1 and removed request for a team June 28, 2022 17:26
@scbrickley scbrickley force-pushed the join-preserve-group-key branch 2 times, most recently from b7c5d14 to 898fa8c Compare June 28, 2022 18:03
@scbrickley scbrickley changed the title fix(join): return error if user tries to modify group key fix(join): return error if user modifies group key Jun 28, 2022
@scbrickley scbrickley force-pushed the join-preserve-group-key branch from 898fa8c to 558a595 Compare June 28, 2022 18:18
found := false
for _, col := range cols {
if gcol == col {
found = true
Copy link
Contributor

Choose a reason for hiding this comment

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

We could break after here. Although, if cols is sorted would a quick binary search be worthwhile?

@scbrickley scbrickley merged commit 5fa6dba into master Jun 28, 2022
@scbrickley scbrickley deleted the join-preserve-group-key branch June 28, 2022 20:25
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.

Join package: report error if user attempts to modify the group key
2 participants