Daniel-Davies opened a new pull request #35071:
URL: https://github.com/apache/spark/pull/35071


   
   ### What changes were proposed in this pull request?
   Please see https://issues.apache.org/jira/browse/SPARK-37788
   
   There are a few remaining functions that should but don't yet support 
ColumnOrName; this PR updates some annotations of functions that do support it, 
and converts input column string names to columns if not being done already.
   
   ### Why are the changes needed?
   API consistency in PySpark
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes; namely two array functions:
   
   - array_repeat; can now support `df.select(array_repeat("data", 
"repeat_n").alias('r'))`
   - slice: can now support `df.select(slice("data", "index", 
"length").alias('r'))`
   
   ### How was this patch tested?
   Modification to two existing unit tests


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