HairstonE opened a new pull request, #22545:
URL: https://github.com/apache/datafusion/pull/22545

   ## Which issue does this PR close?
   
   Closes #22475.
   
   ## Rationale for this change
   
   `$1 = ANY (SELECT ...)` and `$1 <> ALL (SELECT ...)` left the placeholder 
untyped because `infer_placeholder_types` had no arm for `SetComparison`.
   
   ## What changes are included in this PR?
   
   Adds the `SetComparison` arm to `infer_placeholder_types`, reading the type 
from the subquery's projected column. Covers all quantifiers (`ANY`, `ALL`) and 
comparison operators.
   
   ## How are these changes tested?
   
   Unit tests for `ANY` and `ALL` placeholder inference, plus end-to-end 
sqllogictests with `PREPARE`/`EXECUTE`.
   
   ## Are there any user-facing changes?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to