⚡ Sangsakala Proxy 🏠 Home
Skip to content

Query Plan Guidance Framework - #661

Merged
bajinsheng merged 4 commits into
sqlancer:masterfrom
bajinsheng:master
Dec 19, 2022
Merged

bajinsheng merged 4 commits into
sqlancer:masterfrom
bajinsheng:master

Conversation

@bajinsheng

@bajinsheng bajinsheng commented Dec 18, 2022 •

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

@bajinsheng
bajinsheng requested a review from mrigger December 18, 2022 12:42
@bajinsheng bajinsheng mentioned this pull request Dec 18, 2022
Comment thread src/sqlancer/MainOptions.java Resolved
Comment thread src/sqlancer/DatabaseProvider.java Resolved
@bajinsheng
bajinsheng requested a review from mrigger December 19, 2022 02:25
}

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

@mrigger mrigger Dec 19, 2022 •

Copy link
Copy Markdown
Contributor

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.

@mrigger mrigger left a comment

Copy link
Copy Markdown
Contributor

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.

2 participants