[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-10 Thread Sean Owen (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15653586#comment-15653586 ] Sean Owen commented on SPARK-16894: --- That's because it exists already in Hive (and other databases?) It

[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-10 Thread Kapil Singh (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15653494#comment-15653494 ] Kapil Singh commented on SPARK-16894: - How is it different from array_contains? Why is array_contains

[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-08 Thread Sean Owen (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15647178#comment-15647178 ] Sean Owen commented on SPARK-16894: --- This is best accomplished with a UDF. I think that one of the

[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-07 Thread Kapil Singh (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15646576#comment-15646576 ] Kapil Singh commented on SPARK-16894: - This is not about selecting first n elements/columns from a

[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-07 Thread Kapil Singh (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15646563#comment-15646563 ] Kapil Singh commented on SPARK-16894: - The use case is similar to scala collection's take method. So,

[jira] [Commented] (SPARK-16894) take function for returning the first n elements of array column

2016-11-06 Thread Jayadevan M (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15643081#comment-15643081 ] Jayadevan M commented on SPARK-16894: - [~kapilsingh5050] Can you tell me the use case for this >