-
Notifications
You must be signed in to change notification settings - Fork 706
feat(streaming): support union all for streaming query #6397
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6397 +/- ##
==========================================
- Coverage 74.05% 74.00% -0.05%
==========================================
Files 972 975 +3
Lines 158148 158684 +536
==========================================
+ Hits 117115 117436 +321
- Misses 41033 41248 +215
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
|
||
| impl<PlanRef: GenericPlanRef> GenericPlanNode for Union<PlanRef> { | ||
| fn schema(&self) -> Schema { | ||
| self.inputs[0].schema().clone() |
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.
Should we add the hidden column 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.
Probably not. The input schema already contains the hidden column and we can find them by source_col.
st1page
left a comment
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.
Rest LGTM. We can find a better way when we move the pk rewriting only on stream plan 🥵
* support union all for streaming query * fmt * add stream_dist_plan for union Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:
UNION ALLfor streaming queries.source_colfor rewriting the union operator to identify the record that came from the input source and make it a part of the union pks.UNION ALL, but notUNION. I think all theUNIONshould be transformed intoUNION ALLby optimizer in the later PR to avoid the handcrafted streaming rewriting.Checklist
./risedev check(or alias,./risedev c)Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.
Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)
#6392