Skip to content

Commit e7d91ad

Browse files
authored
Revert "tidb: support tidb_cost_model_version (sqlancer#692)" (sqlancer#694)
This reverts commit 1c053ce.
1 parent 1c053ce commit e7d91ad

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ jobs:
328328
run: mvn -B package -DskipTests=true
329329
- name: Set up TiDB
330330
run: |
331-
docker pull pingcap/tidb:nightly
332-
docker run --name tidb-server -d -p 4000:4000 pingcap/tidb:nightly
331+
docker pull pingcap/tidb:latest
332+
docker run --name tidb-server -d -p 4000:4000 pingcap/tidb:latest
333333
sleep 10
334334
- name: Create SQLancer user
335335
run: sudo mysql -h 127.0.0.1 -P 4000 -u root -D test -e "CREATE USER 'sqlancer'@'%' IDENTIFIED WITH mysql_native_password BY 'sqlancer'; GRANT ALL PRIVILEGES ON *.* TO 'sqlancer'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;"

src/sqlancer/tidb/gen/TiDBSetGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private TiDBSetGenerator() {
1313
}
1414

1515
private enum Action {
16-
TIDB_COST_MODEL_VERSION("tidb_cost_model_version", (r) -> Randomly.fromOptions(1, 2)), //
16+
1717
// SQL_MODE("sql_mode", (r) -> Randomly.fromOptions("TRADITIONAL", "ANSI", "POSTGRESQL", "ORACLE")),
1818
TIDB_OPT_AGG_PUSH_DOWN("tidb_opt_agg_push_down", (r) -> Randomly.fromOptions(0, 1)), //
1919
TIDB_BUILD_STATS_CONCURRENCY("tidb_build_stats_concurrency", (r) -> Randomly.getNotCachedInteger(0, 500)), //

0 commit comments

Comments
 (0)