[
https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646576#comment-15646576
]
Kapil Singh commented on SPARK-16894:
-------------------------------------
This is not about selecting first n elements/columns from a Row. It's for
selecting first n elements of an array type column. So for every record/Row the
input column has some m elements but the result column has only first n
elements of the input column. This operation is similar to scala collection's
take operation. The scope of the operation is cell values and not Row.
> take function for returning the first n elements of array column
> ----------------------------------------------------------------
>
> Key: SPARK-16894
> URL: https://issues.apache.org/jira/browse/SPARK-16894
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Reporter: Kapil Singh
>
> take(inputArray, n)
> Returns array containing first n elements of inputArray
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]