Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9B0B18E61 for ; Thu, 21 May 2015 08:45:01 +0000 (UTC) Received: (qmail 88388 invoked by uid 500); 21 May 2015 08:45:01 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 88366 invoked by uid 500); 21 May 2015 08:45:01 -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 88356 invoked by uid 99); 21 May 2015 08:45:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 08:45:01 +0000 Date: Thu, 21 May 2015 08:45:01 +0000 (UTC) From: "Hive QA (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10427) collect_list() and collect_set() should accept struct types as argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14553898#comment-14553898 ] Hive QA commented on HIVE-10427: -------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12734347/HIVE-10427.2.patch {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 8969 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_udaf_collect_set_2 {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3982/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3982/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-3982/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12734347 - PreCommit-HIVE-TRUNK-Build > collect_list() and collect_set() should accept struct types as argument > ----------------------------------------------------------------------- > > Key: HIVE-10427 > URL: https://issues.apache.org/jira/browse/HIVE-10427 > Project: Hive > Issue Type: Wish > Components: UDF > Reporter: Alexander Behm > Assignee: Chao Sun > Attachments: HIVE-10427.1.patch, HIVE-10427.2.patch > > > The collect_list() and collect_set() functions currently only accept scalar argument types. It would be very useful if these functions could also accept struct argument types for creating nested data from flat data. > For example, suppose I wanted to create a nested customers/orders table from two flat tables, customers and orders. Then it'd be very convenient to write something like this: > {code} > insert into table nested_customers_orders > select c.*, collect_list(named_struct("oid", o.oid, "order_date": o.date...)) > from customers c inner join orders o on (c.cid = o.oid) > group by c.cid > {code} > Thanks you for your consideration. -- This message was sent by Atlassian JIRA (v6.3.4#6332)