Describe the bug
Calling <Expr as ExprSchemable>::nullable on an InSubquery expression only uses the expr's nullability over the schema, and not the subquery's nullability. so it return false for queries with the general shape of x_non_null IN (SELECT a_nullable FROM t).
This will cause ExprSimplifier to wrongly simplify some expressions into a lit(true) incorrectly.
To Reproduce
No response
Expected behavior
No response
Additional context
No response
Describe the bug
Calling
<Expr as ExprSchemable>::nullableon an InSubquery expression only uses theexpr's nullability over the schema, and not the subquery's nullability. so it returnfalsefor queries with the general shape ofx_non_null IN (SELECT a_nullable FROM t).This will cause
ExprSimplifierto wrongly simplify some expressions into alit(true)incorrectly.To Reproduce
No response
Expected behavior
No response
Additional context
No response