-
Notifications
You must be signed in to change notification settings - Fork 526
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
feat(frontend): test create source in yaml #1824
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1824 +/- ##
=======================================
Coverage 70.78% 70.79%
=======================================
Files 608 608
Lines 79569 79613 +44
=======================================
+ Hits 56325 56364 +39
- Misses 23244 23249 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
src/frontend/test_runner/src/lib.rs
Outdated
pub struct CreateSource { | ||
row_format: String, | ||
name: String, | ||
file_location: Option<String>, |
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.
Add it back when it's used. Still hard to use file location in test.
file_location: Option<String>, |
src/frontend/test_runner/src/lib.rs
Outdated
.await | ||
} else { | ||
panic!( | ||
"{:?} create source need to conclude content or location", |
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.
"{:?} create source need to conclude content or location", | |
"{:?} create source must include `file` for the file content", |
src/frontend/test_runner/src/lib.rs
Outdated
let placeholder_empty_vec = vec![]; | ||
|
||
// Since temp file will be deleted when it goes out of scope, so create source advance. | ||
self.create_source_advance(session.clone()).await?; |
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.
self.create_source_advance(session.clone()).await?; | |
self.create_source(session.clone()).await?; |
Btw, "in advance" , not "advance"
…/risingwave into feat/test_create_source
@@ -73,6 +75,18 @@ pub struct TestCase { | |||
|
|||
/// Error of optimizer | |||
pub optimizer_error: Option<String>, | |||
|
|||
/// Support using file content or file location to create source. |
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.
/// Support using file content or file location to create source. | |
/// Support using file content to create source. |
} | ||
|
||
// If testcase have create source info, run sql to create source. | ||
// Support create source by file content or file location. |
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.
// Support create source by file content or file location. | |
// Support create source by file content. |
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Since now we must create protobuf source by using file location in below format.
This pr supports create protobuf source by using content or location in yaml.
Checklist
Refer to a related PR or issue link (optional)