-
Notifications
You must be signed in to change notification settings - Fork 595
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
refactor(nexmark): unify three sources into one #6800
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.
license-eye has totally checked 2490 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1191 | 1 | 1298 | 0 |
Click to see the invalid file list
- src/connector/src/source/nexmark/source/combined_event.rs
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.
license-eye has totally checked 2490 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1191 | 1 | 1298 | 0 |
Click to see the invalid file list
- src/connector/src/source/nexmark/source/combined_event.rs
This sounds like a good idea. 🤔 When we want a single source for some trivial tests, we can directly specify the name and ingest it at full speed. When we need to mimic the real case in production, we can use this unified source to give precious control of the event ratio, just like what Flink does. |
I will still use the single type source generator for the simulation tests. I tried to integrate the unified source generator into it, but:
|
I think we can ignore this. This is a notice in production and should be normal in tests. 🤔 I'll fix here. |
Codecov Report
@@ Coverage Diff @@
## main #6800 +/- ##
==========================================
- Coverage 73.23% 73.21% -0.02%
==========================================
Files 1025 1026 +1
Lines 164193 164212 +19
==========================================
- Hits 120252 120235 -17
- Misses 43941 43977 +36
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 |
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.
LGTM!
On my MacBook with default configurations( Using the unified source
and
|
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.
LGTM 🚀
Hey @lmatz, this pull request failed to merge and has been dequeued from the merge train. If you believe your PR failed in the merge train because of a flaky test, requeue it by clicking "Update branch" or pushing an empty commit with |
@lmatz Do you think we should document the nexmark connector for generating mock data? We already documented |
It's fine, not a must right now. |
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
#6747
Usematerialized view
instead ofview
to re-create three sources, i.e. person, bid, auction. This is because if we useview
, due to certain limitations in #6801 or #6161, RW cannot find the column referenced in nexmark queries.Will use
View
to separate thenexmark
source into three differentviews
after #6817 , and thus nexmark queries no need to change.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.
For RW's in memory data generator
nexmark
, it supports another mode, i.e. generating three types of events in one source (unified source).In this mode,
nexmark.table.type =
is not specified.Refer to a related PR or issue link (optional)