-
Notifications
You must be signed in to change notification settings - Fork 256
Introduce scheduler for sqllogictests #1244
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: liurenjie1024 <[email protected]>
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.
Pull Request Overview
This PR introduces a scheduler API for sqllogictests, refactoring engine abstractions and adding new scheduling functionality.
- Added a new scheduler module with a Schedule struct to run steps sequentially.
- Refactored the engine interface by replacing the previous Engine trait with an EngineRunner trait and updating the DataFusion engine accordingly.
- Updated Cargo.toml to include new dependencies.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
crates/sqllogictest/src/schedule.rs | New scheduler module for executing sqllogictest steps |
crates/sqllogictest/src/lib.rs | Exposed the new schedule module |
crates/sqllogictest/src/engine/mod.rs | Refactored engine abstraction; introduced EngineRunner and updated enum |
crates/sqllogictest/src/engine/datafusion.rs | Updated DataFusion engine to implement EngineRunner and adjusted new() |
crates/sqllogictest/Cargo.toml | Added required dependencies (serde, tracing) |
Comments suppressed due to low confidence (1)
crates/sqllogictest/src/schedule.rs:35
- [nitpick] Consider renaming the field 'slt' to 'slt_file' in the Step struct to improve clarity regarding its purpose.
slt: 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.
LGTM, small nits
Which issue does this PR close?
What changes are included in this PR?
Introduce scheduler api for sqllogictests.
Are these changes tested?
UT.