pub fn in_subquery_tuple_values<'a>(
expr: &'a Expr,
subquery: &LogicalPlan,
) -> Result<Option<Cow<'a, [Expr]>>>Expand description
The tuple elements of a multi-column (a, b, ...) IN (SELECT x, y, ...),
given the compared expression expr and the subquery plan, or None
for a single-column IN.
The tuple is planned as a struct call, which simplify_expressions folds
into a struct literal when every element is a literal. It is a
multi-column IN only when the subquery returns more than one column;
against a single column the struct is one value compared with a
struct-typed column.
Errors when the number of tuple elements does not match the number of subquery columns.