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

   ## Which issue does this PR close?
   
   Closes #16018
   
   ## Rationale for this change
   
   As data types of prepare statement without explicit types declaration are 
not included in the logical plan so validations are not posible while unit 
testing, i.e: type placeholder value replacement. This PR enable that scenario 
to be tested. 
   
   ## What changes are included in this PR?
   
   * Infer the datatype when it is empty so it can be included in the logical 
plan. 
   
   ## Are these changes tested?
   
   * Yes
   
   ## Are there any user-facing changes?
   
   Yes, the error provided to the end user when a placeholder value is not 
provided changes from `No value found for placeholder with id \$1` to `Prepared 
statement 'my_plan' expects 1 parameters, but 0 provided`.
   
   No breaking changes to public apis. 
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to