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

explaintest: use mysql-tester in explaintest #45995

Merged
merged 7 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions cmd/explaintest/BUILD.bazel

This file was deleted.

11 changes: 2 additions & 9 deletions cmd/explaintest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ Usage: ./run-tests.sh [options]

-v <vendor-path>: Add <vendor-path> to $GOPATH.

-c <test-name>|all: Create data according to creating statements in file "t/<test-name>.test" and save stats in "s/<test-name>_tableName.json".
<test-name> must has a suffix of '_stats'.
"all" for creating stats of all tests.

-i <importer-path>: Use importer in <importer-path> for creating data.

-p <portgenerator-path>: Use port generator in <portgenerator-path> for generating port numbers.
```

Expand All @@ -55,13 +49,12 @@ make explaintest
```
It will identify execute plan change.

### Generate New Stats and Result from Execute
### Generate New Result from Execute

First, add new test query in `t/` folder.

```sh
cd cmd/explaintest
./run-tests.sh -r [casename]
./run-tests.sh -c [casename]
``
It will generate result and stats base on last execution, and then we can reuse them or open editor to do some modify.
It will generate result base on last execution, and then we can reuse them or open editor to do some modify.
Loading