Skip to content

Commit

Permalink
test: remove outdated tidb-instance-id in config (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 authored Feb 1, 2021
1 parent 4692c1e commit d4751ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pkg/dbutil/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,16 @@ func GetBucketsInfo(ctx context.Context, db *sql.DB, schema, table string, table

for rows.Next() {
var dbName, tableName, partitionName, columnName, lowerBound, upperBound sql.NullString
var isIndex, bucketID, count, repeats sql.NullInt64
var isIndex, bucketID, count, repeats, ndv sql.NullInt64

// add partiton_name in new version
switch len(cols) {
case 9:
err = rows.Scan(&dbName, &tableName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound)
case 10:
err = rows.Scan(&dbName, &tableName, &partitionName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound)
case 11:
err = rows.Scan(&dbName, &tableName, &partitionName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound, &ndv)
default:
return nil, errors.New("Unknown struct for buckets info")
}
Expand Down
3 changes: 0 additions & 3 deletions tests/sync_diff_inspector/ignore_column/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ use-checkpoint = false
# the name of the file which saves sqls used to fix different data.
fix-sql-file = "/tmp/tidb_tools_test/sync_diff_inspector/fix.sql"

# use this tidb's statistics information to split chunk
tidb-instance-id = "target-1"

# tables need to check.
[[check-tables]]
# schema name in target database.
Expand Down

0 comments on commit d4751ee

Please sign in to comment.