hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-10427) collect_list() and collect_set() should accept struct types as argument
Date Mon, 18 May 2015 21:56:59 GMT


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:

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 8946 tests executed
*Failed tests:*

Test results:
Console output:
Test logs:

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

This message is automatically generated.

ATTACHMENT ID: 12733590 - PreCommit-HIVE-TRUNK-Build

> collect_list() and collect_set() should accept struct types as argument
> -----------------------------------------------------------------------
>                 Key: HIVE-10427
>                 URL:
>             Project: Hive
>          Issue Type: Wish
>          Components: UDF
>            Reporter: Alexander Behm
>            Assignee: Chao Sun
>         Attachments: HIVE-10427.1.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":
> 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

View raw message