HyukjinKwon opened a new pull request, #57183:
URL: https://github.com/apache/spark/pull/57183

   ### What changes were proposed in this pull request?
   
   This documents, for every built-in function argument, which input types it 
accepts, in the SQL
   `@ExpressionDescription` `arguments` blocks (rendered on the SQL functions 
reference page), using a
   numeric umbrella (`a numeric` / `a numeric or interval`) where numeric 
subtypes cast in, and
   `timestamp` for TIMESTAMP_NTZ in type phrases.
   
   Subtask of SPARK-57999, split out from apache/spark#57079 for reviewability. 
This PR covers only
   the SQL surface.
   
   ### Why are the changes needed?
   
   The SQL function reference previously had no per-argument type information 
for most built-in
   functions. This fills that gap.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, documentation only. No behavioral or API change.
   
   ### How was this patch tested?
   
   Existing `ExpressionInfoSuite` and the SPARK-32870 argument-block-format 
tests pass. Types were
   derived from and verified against the analyzer's accept/reject behavior and 
each expression's
   `inputTypes` / `checkInputDataTypes`.
   
   Co-authored-by: Isaac
   
   


-- 
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