bboutkov commented on a change in pull request #26896: [PYSPARK][MINOR][DOC] 
fix pyspark slice documentation
URL: https://github.com/apache/spark/pull/26896#discussion_r357982224
 
 

 ##########
 File path: python/pyspark/sql/functions.py
 ##########
 @@ -1973,6 +1973,11 @@ def slice(x, start, length):
     """
     Collection function: returns an array containing  all the elements in `x` 
from index `start`
     (array indices start at 1, or from the end if `start` is negative) with 
the specified `length`.
+
+    :param x: the array to be sliced
+    :param start: the starting index
+    :param length: the length of the slice
 
 Review comment:
   I added the scala params. 
   
   Maybe I am mistaken, but it seems the R API already has this documented at 
https://github.com/apache/spark/blob/a9fbd310300e57ed58818d7347f3c3172701c491/R/pkg/R/functions.R#L3623
   
   The rendering seems to work fine too on 
https://spark.apache.org/docs/latest/api/R/index.html so I am leaving the R 
docs alone.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to