@@ -21,6 +21,7 @@ import (
21
21
"strings"
22
22
"testing"
23
23
24
+ "github.com/pingcap/errors"
24
25
"github.com/pingcap/tidb/pkg/config"
25
26
"github.com/pingcap/tidb/pkg/domain"
26
27
"github.com/pingcap/tidb/pkg/expression"
@@ -2354,11 +2355,14 @@ func TestRollupExpand(t *testing.T) {
2354
2355
require .Equal (t , builder .currentBlockExpand .LevelExprs != nil , true )
2355
2356
require .Equal (t , len (builder .currentBlockExpand .LevelExprs ), 3 )
2356
2357
// for grouping set {}: gid = '00' = 0
2357
- require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [0 ], expand .Schema ()), "test.t.a, <nil>->Column#13, <nil>->Column#14, 0->gid" )
2358
+ require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [0 ], expand .Schema (), errors .RedactLogDisable ),
2359
+ "test.t.a, <nil>->Column#13, <nil>->Column#14, 0->gid" )
2358
2360
// for grouping set {a}: gid = '01' = 1
2359
- require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [1 ], expand .Schema ()), "test.t.a, Column#13, <nil>->Column#14, 1->gid" )
2361
+ require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [1 ], expand .Schema (), errors .RedactLogDisable ),
2362
+ "test.t.a, Column#13, <nil>->Column#14, 1->gid" )
2360
2363
// for grouping set {a,b}: gid = '11' = 3
2361
- require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [2 ], expand .Schema ()), "test.t.a, Column#13, Column#14, 3->gid" )
2364
+ require .Equal (t , expression .ExplainExpressionList (s .ctx .GetExprCtx ().GetEvalCtx (), expand .LevelExprs [2 ], expand .Schema (), errors .RedactLogDisable ),
2365
+ "test.t.a, Column#13, Column#14, 3->gid" )
2362
2366
2363
2367
require .Equal (t , expand .Schema ().Len (), 4 )
2364
2368
// source column a should be kept as real.
0 commit comments