Skip to content

Commit

Permalink
test: fix stats buckets not shown (#733)
Browse files Browse the repository at this point in the history
close #734
  • Loading branch information
Leavrth authored Jun 20, 2023
1 parent 8e16448 commit b229dd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/sync_diff_inspector/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ echo "analyze table, and will use tidb's statistical information to split chunks
check_contains "split range by random" $OUT_DIR/sync_diff.log
rm -rf $OUT_DIR/*
mysql -uroot -h 127.0.0.1 -P 4000 -e "analyze table diff_test.test"
# run the explain SQL to load the stats after analyze
mysql -uroot -h 127.0.0.1 -P 4000 -e "explain select * from diff_test.test where aa > 1"
mysql -uroot -h 127.0.0.1 -P 4000 -e "explain select * from diff_test.test where \`table\` > 1"
mysql -uroot -h 127.0.0.1 -P 4000 -e "show stats_buckets"
sync_diff_inspector --config=./config_base_tidb.toml > $OUT_DIR/diff.output
check_contains "check pass!!!" $OUT_DIR/sync_diff.log
check_not_contains "split range by random" $OUT_DIR/sync_diff.log
Expand Down

0 comments on commit b229dd2

Please sign in to comment.