diff --git a/pkg/sql/sem/tree/type_check.go b/pkg/sql/sem/tree/type_check.go index c6835db6b970..c581b8dc1f52 100644 --- a/pkg/sql/sem/tree/type_check.go +++ b/pkg/sql/sem/tree/type_check.go @@ -2347,8 +2347,6 @@ func typeCheckComparisonOp( // a::TEXT @@ b::TEXT | to_tsvector(a) @@ plainto_tsquery(b) // a::TEXT @@ b::TSQUERY | to_tsvector(a) @@ b // a::TSQUERY @@ b::TEXT | a @@ to_tsvector(b) - // a::TSVECTOR @@ b::TEXT | a @@ b::TSQUERY - // a::TEXT @@ b::TSVECTOR | a::TSQUERY @@ b if leftFamily == types.StringFamily { if rightFamily == types.StringFamily || rightFamily == types.TSQueryFamily { leftExprs := make(Exprs, 1)