diff --git a/go/mysql/flavor_mysql.go b/go/mysql/flavor_mysql.go index 88a7d102e85..4334cbfb699 100644 --- a/go/mysql/flavor_mysql.go +++ b/go/mysql/flavor_mysql.go @@ -247,7 +247,7 @@ func (mysqlFlavor) disableBinlogPlaybackCommand() string { // TablesWithSize56 is a query to select table along with size for mysql 5.6 const TablesWithSize56 = `SELECT table_name, table_type, unix_timestamp(create_time), table_comment, SUM( data_length + index_length), SUM( data_length + index_length) - FROM information_schema.tables WHERE table_schema = database()` + FROM information_schema.tables WHERE table_schema = database() group by table_name` // TablesWithSize57 is a query to select table along with size for mysql 5.7 const TablesWithSize57 = `SELECT t.table_name, t.table_type, unix_timestamp(t.create_time), t.table_comment, i.file_size, i.allocated_size diff --git a/go/vt/vttablet/tabletserver/query_engine_test.go b/go/vt/vttablet/tabletserver/query_engine_test.go index 6189297c67b..58d78ed30b3 100644 --- a/go/vt/vttablet/tabletserver/query_engine_test.go +++ b/go/vt/vttablet/tabletserver/query_engine_test.go @@ -32,16 +32,13 @@ import ( "testing" "time" - "vitess.io/vitess/go/mysql" - - "context" "github.com/stretchr/testify/require" "vitess.io/vitess/go/cache" - "vitess.io/vitess/go/streamlog" - + "vitess.io/vitess/go/mysql" "vitess.io/vitess/go/mysql/fakesqldb" "vitess.io/vitess/go/sqltypes" + "vitess.io/vitess/go/streamlog" "vitess.io/vitess/go/vt/dbconfigs" "vitess.io/vitess/go/vt/tableacl" "vitess.io/vitess/go/vt/vttablet/tabletserver/planbuilder"