-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
GroupBy uid shouldn't panic, and other logic fixes. #3232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @srfrog)
systest/queries_test.go, line 52 at r1 (raw file):
t.Run("multiple block eval", wrap(MultipleBlockEval)) t.Run("unmatched var assignment eval", wrap(UnmatchedVarEval)) t.Run("hash index queries", wrap(QueryHashIndex))
These hash index query tests weren't in the original commit (2b943ca). Are they harmless here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @danielmai)
systest/queries_test.go, line 52 at r1 (raw file):
Previously, danielmai (Daniel Mai) wrote…
These hash index query tests weren't in the original commit (2b943ca). Are they harmless here?
I added them because we had no hash index tests. Harmless? Only if they pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @danielmai)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
This PR fixes an issue with queries using
@groupby(uid)
directive that would cause Alpha to panic.@groupby
panic was due to the fact that we don't create tasks for children subgraphs usinguid
as attribute. Therefore, we don't generateDestUIDs
list for them. When the groupby is processed the field is nil and we panic when it tries to access the uids from that list.DestUIDs
isn't nil. This will move the result list to useSrcUIDs
instead which is expected.Closes #2936
This change is