Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7C9E4200B21 for ; Fri, 10 Jun 2016 20:14:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7B460160A5B; Fri, 10 Jun 2016 18:14:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E7677160A38 for ; Fri, 10 Jun 2016 20:14:21 +0200 (CEST) Received: (qmail 44807 invoked by uid 500); 10 Jun 2016 18:14:21 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 44776 invoked by uid 99); 10 Jun 2016 18:14:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 18:14:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ECF962C1F5D for ; Fri, 10 Jun 2016 18:14:20 +0000 (UTC) Date: Fri, 10 Jun 2016 18:14:20 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-13993) Hive should provide built-in UDF that can apply another UDF to each element of an array MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Jun 2016 18:14:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-13993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324998#comment-15324998 ] Sergey Shelukhin commented on HIVE-13993: ----------------------------------------- Then we also need fold, and we can have map-reduce on top of Hive ;) > Hive should provide built-in UDF that can apply another UDF to each element of an array > --------------------------------------------------------------------------------------- > > Key: HIVE-13993 > URL: https://issues.apache.org/jira/browse/HIVE-13993 > Project: Hive > Issue Type: New Feature > Reporter: Anthony Hsu > > There is currently no simple way to take an array field and apply a UDF on each element of the array, returning a new array. This is a basic use case that Hive should provide a built-in UDF for. More motivation: http://stackoverflow.com/questions/27722493/how-to-invoke-udf-for-each-element-in-an-array-in-hive -- This message was sent by Atlassian JIRA (v6.3.4#6332)