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


   ### What changes were proposed in this pull request?
   
   This PR completes SPARK-10621 and makes functions APIs to use snake_case 
across the languages.
   
   In more details, this PR:
   - Adds `count_distinct` in Scala Python, and R, and document that 
`count_distinct` is encouraged. This was not deprecated because `countDistinct` 
is pretty commonly used. We could deprecate in the future releases.
   - Deprecates and renames:
     - `sumDistinct` -> `sum_distinct`
     - `bitwiseNOT` -> `bitwise_not`
     - `shiftLeft -> `shiftleft` (matched with SQL name in `FunctionRegistry`)
     - `shiftRight -> `shiftright` (matched with SQL name in `FunctionRegistry`)
     - `shiftRightUnsigned` -> `shiftrightunsigned` (matched with SQL name in 
`FunctionRegistry`)
     - (Scala-specific) `typedLit` -> `typedlit`
     - (Scala-specific) `callUDF` -> `call_udf`
   
   
   ### Why are the changes needed?
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   
   ### How was this patch tested?
   
   
   


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

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