Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

liurenjie1024
Copy link
Contributor

Which issue does this PR close?

What changes are included in this PR?

Introduce scheduler api for sqllogictests.

Are these changes tested?

UT.

Copy link

@Copilot Copilot AI left a 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,

Copy link
Contributor

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small nits

@liurenjie1024
Copy link
Contributor Author

cc @Xuanwo @Fokko @sdd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce scheduler for integration tests.
2 participants