Expression column_refs
does not return outer referenced columns in subqueries
#15046
Labels
bug
Something isn't working
Describe the bug
Calling
column_refs()
on a subquery expression returns no column references, even if the subquery contains outer references.PushDownFilter optimization uses the
column_refs()
to compare against the columns returned fromprevent_predicate_push_down_columns()
on an extension node. The effect of this is that a subquery in a filter may get pushed below an extension node when it shouldn't.To Reproduce
Expected behavior
column_refs()
should return the outer columns used by the subquery expression.Additional context
The relevant code is here. It just collects
Expr::Column
s within self.The text was updated successfully, but these errors were encountered: