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

   ## Which issue does this PR close?
   
   Closes #15979.
   
   ## Rationale for this change
   
   `$1 IN (SELECT ...)` left the placeholder untyped because 
`infer_placeholder_types` had no arm for `InSubquery` and made 
`get_parameter_types()` return `None` for these placeholders.
   
   ## What changes are included in this PR?
   
   Adds the `InSubquery` arm to `infer_placeholder_types`, reading the type 
from the subquery's projected column. Covers both `IN` and `NOT IN`.
   
   ## How are these changes tested?
   
   Unit tests for `IN` and `NOT IN` 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