Skip to content

Commit 637c3f1

Browse files
committed
update func deps tests
1 parent 06b17bd commit 637c3f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/func_deps_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func TestFuncDeps_LeftJoin(t *testing.T) {
360360
mnpq.AddStrictKey(cols(6, 7))
361361

362362
join := NewLeftJoinFDs(mnpq, abcde, [][2]ColumnId{{1, 6}})
363-
assert.Equal(t, "key(6,7); fd(1)/(1-5); lax-fd(2,3)/(1-5)", join.String())
363+
assert.Equal(t, "key(6,7); equiv(1,6); fd(1)/(1-5); lax-fd(2,3)/(1-5)", join.String())
364364
})
365365
t.Run("join filter equiv and null-side rel equiv", func(t *testing.T) {
366366
// SELECT * FROM abcde RIGHT OUTER JOIN mnpq ON a=m AND a=b
@@ -374,7 +374,7 @@ func TestFuncDeps_LeftJoin(t *testing.T) {
374374
mnpq.AddStrictKey(cols(6, 7))
375375

376376
join := NewLeftJoinFDs(mnpq, abcde, [][2]ColumnId{{1, 6}, {1, 2}})
377-
assert.Equal(t, "key(6,7); fd(1)/(1-5); lax-fd(2,3)/(1-5)", join.String())
377+
assert.Equal(t, "key(6,7); equiv(1,2,6); fd(1)/(1-5); lax-fd(2,3)/(1-5)", join.String())
378378
})
379379
t.Run("max1Row left join", func(t *testing.T) {
380380
abcde := &FuncDepSet{all: cols(1, 2, 3, 4, 5)}
@@ -390,7 +390,7 @@ func TestFuncDeps_LeftJoin(t *testing.T) {
390390
mnpq.AddStrictKey(cols(6, 7))
391391

392392
join := NewLeftJoinFDs(mnpq, abcde, [][2]ColumnId{{1, 6}, {1, 2}})
393-
assert.Equal(t, "key(); constant(1,6,7)", join.String())
393+
assert.Equal(t, "key(); constant(1,2,6,7); equiv(1,2,6)", join.String())
394394
})
395395
}
396396

0 commit comments

Comments
 (0)