[
https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647178#comment-15647178
]
Sean Owen commented on SPARK-16894:
-----------------------------------
This is best accomplished with a UDF. I think that one of the points of Spark
SQL is that these don't need special language operators
> 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]