diff --git a/pkg/sql/opt/xform/testdata/rules/select b/pkg/sql/opt/xform/testdata/rules/select index ceb9f4095874..5e8692a7dbe2 100644 --- a/pkg/sql/opt/xform/testdata/rules/select +++ b/pkg/sql/opt/xform/testdata/rules/select @@ -8561,7 +8561,6 @@ project └── filters (true) # Query requiring a zigzag join with a remaining filter. -# TODO(itsbilal): remove filter from index join if zigzag join covers it. opt expect=GenerateInvertedIndexZigzagJoins SELECT j, k FROM b WHERE j @> '{"a": "b", "c": "d"}' ---- 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)