Module decorrelate_predicate_subquery

Module decorrelate_predicate_subquery 

Source
Expand description

DecorrelatePredicateSubquery converts IN/EXISTS subquery predicates to SEMI/ANTI joins

Structsยง

DecorrelatePredicateSubquery
Optimizer rule for rewriting predicate(IN/EXISTS) subquery to left semi/anti joins
SubqueryInfo ๐Ÿ”’

Enumsยง

SubqueryPredicate ๐Ÿ”’

Functionsยง

build_join ๐Ÿ”’
build_join_top ๐Ÿ”’
Optimize the subquery to left-anti/left-semi join. If the subquery is a correlated subquery, we need extract the join predicate from the subquery.
extract_subquery_info ๐Ÿ”’
has_subquery ๐Ÿ”’
mark_join ๐Ÿ”’
This is used to handle the case when the subquery is embedded in a more complex boolean expression like and OR. For example
rewrite_inner_subqueries ๐Ÿ”’