Skip to content

Commit

Permalink
Merge #104142
Browse files Browse the repository at this point in the history
104142: sql: fix comment and remove TODO r=mgartner a=mgartner

#### opt: remove unnecessary TODO

This commit removes a TODO that was addressed in #95638.

Release note: None

#### sql: fix comment in type_check.go

This commit fixes a comment that has been outdated since #100704.

Epic: None

Release note: None


Co-authored-by: Marcus Gartner <[email protected]>
  • Loading branch information
craig[bot] and mgartner committed Jun 1, 2023
2 parents 3dc6fda + 981ff8f commit fdf0690
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/sql/opt/xform/testdata/rules/select
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'
----
Expand Down
2 changes: 0 additions & 2 deletions pkg/sql/sem/tree/type_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdf0690

Please sign in to comment.