Skip to content

Commit

Permalink
support eliminate outer join by match expression
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jul 31, 2024
1 parent e577ea4 commit 7bfe0ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions regression-test/suites/nereids_syntax_p0/match.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ suite("match") {
SELECT * FROM test_nereids_match_select WHERE name match_phrase 'zhang' and selfComment match_phrase 'want go outside';
"""

explain {
sql """
select *
from test_nereids_match_select a
left join
test_nereids_match_select b
on a.age = b.age
where b.name match_any 'zhang'
"""

contains("INNER JOIN")
}

order_qt_match_join """
select *
from test_nereids_match_select a
Expand Down

0 comments on commit 7bfe0ff

Please sign in to comment.