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

   ### What changes were proposed in this pull request?
   
   This documents, for every built-in function in the PySpark `functions` API 
(`builtin.py`), the
   accepted input type of each argument (`Parameters`) and the return type of 
each function
   (`Returns`), using the numeric umbrella 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 PySpark `builtin.py` surface.
   
   ### Why are the changes needed?
   
   The PySpark `functions` docstrings previously had no per-argument type 
information for most
   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?
   
   Python lint (flake8 + black) and the docstring doctests pass. Types were 
derived from and verified
   against the analyzer's behavior and each expression's `inputTypes` / 
`dataType`.
   
   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