Skip to content
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

Query Plan Guidance Framework #661

Merged
merged 4 commits into from
Dec 19, 2022
Merged

Query Plan Guidance Framework #661

merged 4 commits into from
Dec 19, 2022

Conversation

bajinsheng
Copy link
Collaborator

@bajinsheng bajinsheng commented Dec 18, 2022

  • Add the framework of Query Plan Guidance (QPG).
  • Add the QPG implementation of SQLite CockroachDB and TiDB.

@bajinsheng bajinsheng mentioned this pull request Dec 18, 2022
src/sqlancer/MainOptions.java Outdated Show resolved Hide resolved
src/sqlancer/sqlite3/SQLite3Provider.java Outdated Show resolved Hide resolved
src/sqlancer/DatabaseProvider.java Outdated Show resolved Hide resolved
@@ -285,4 +287,57 @@ public String getDBMSName() {
return "cockroachdb";
}

@Override
public String getQueryPlan(String selectStr, CockroachDBGlobalState globalState) throws Exception {
Copy link
Contributor

@mrigger mrigger Dec 19, 2022

Choose a reason for hiding this comment

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

It would be great to add a couple of test cases (perhaps in a future PR) for parsing the query plans to ensure that everything still works after updating the database systems.

Copy link
Contributor

@mrigger mrigger left a comment

Choose a reason for hiding this comment

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

LGTM!

@bajinsheng bajinsheng merged commit 38bf640 into sqlancer:master Dec 19, 2022
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.

None yet

2 participants