-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: Set operations (UNION, INTERSECT, EXCEPT) #10432
Comments
@irfansharif , I could have a look on it. |
@a6802739: go for it! let me know if you need any pointers. |
@irfansharif , okay, thanks a lot. At first, I'll have a see on it. |
@irfansharif, should I add a When I see the real implemention of aggregator, I couldn't quite understand what does
what does the GroupCols means? And in
And should I just translate cc @irfansharif . |
hey @a6802739, for the spec definition going with
I would the implementations would function similarly but keep in mind under As far as your questions concerning |
cc @arjunravinarayan, given you expressed interest in taking this on as well. |
This issue has two parts:
The first would be better as a one-off project for someone who is not familiar with distsql. The latter is not very difficult but it requires understanding a lot of the existing planning code. |
Hey @a6802739, what's your status on this? I'm thinking of taking this one on since it's been sitting here for a while, unless you've already done some work on this. |
This addresses cockroachdb#10432, but does not finish it as it does not include additions to the DistSQL physical planner to use the SET processor. This is a work in progress out for quick feedback, it only implements the UNION ALL processor, but it involves a bunch of scaffolding for which I would love some feedback. [*] Implement basic scaffolding [*] Split off StreamCacher into its own file [*] Implement one single SET operation: Union All [*] Implement testing for Union All [ ] Implement Union [ ] Implement Intersect [ ] Implement Intersect All [ ] Implement Except [ ] Implement Except All [ ] Implement all other tests
abhishek has been assigned this issue to complete the work on INTERSECT and EXCEPT |
Part of cockroachdb#10432, cockroachdb#21661, and cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT ALL and EXCEPT ALL queries.
Part of cockroachdb#10432, cockroachdb#21661, and cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT ALL and EXCEPT ALL queries.
Part of cockroachdb#10432, cockroachdb#21661, and cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT ALL and EXCEPT ALL queries.
Part of cockroachdb#10432, cockroachdb#21661, and cockroachdb#21706. Closes cockroachdb#16064. Release note (performance improvement): Support distributed execution of INTERSECT ALL and EXCEPT ALL queries.
Part of cockroachdb#10432, cockroachdb#21661, and cockroachdb#21706. Closes cockroachdb#16064. Release note (performance improvement): Support distributed execution of INTERSECT ALL and EXCEPT ALL queries.
Fixes cockroachdb#10432. Fixes cockroachdb#21661. Fixes cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT and EXCEPT queries.
Fixes cockroachdb#10432. Fixes cockroachdb#21661. Fixes cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT and EXCEPT queries.
Fixes cockroachdb#10432. Fixes cockroachdb#21661. Fixes cockroachdb#21706. Release note (performance improvement): Support distributed execution of INTERSECT and EXCEPT queries.
Implementation of a processor "core" type from #7587.
Set operations would include
UNION
,UNION ALL
,INTERSECT
,INTERSECT ALL
,EXCEPT
,EXCEPT ALL
.This processor, like join processors, would have two input streams and one output stream. Some of existing processor core type implementations under
pkg/sql/distsql
and spec definitions inpkg/sql/distsql/processors.proto
can be used for reference.The text was updated successfully, but these errors were encountered: