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 A0F60200BD5 for ; Thu, 8 Dec 2016 19:12:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9FAF6160B1F; Thu, 8 Dec 2016 18:12:24 +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 EA383160B0A for ; Thu, 8 Dec 2016 19:12:23 +0100 (CET) Received: (qmail 25996 invoked by uid 500); 8 Dec 2016 18:12:23 -0000 Mailing-List: contact commits-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list commits@pig.apache.org Received: (qmail 25987 invoked by uid 99); 8 Dec 2016 18:12:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 18:12:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 79B2C1A04BD for ; Thu, 8 Dec 2016 18:12:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nAyy-sD6mnCd for ; Thu, 8 Dec 2016 18:12:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 19F775FBC1 for ; Thu, 8 Dec 2016 18:12:20 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F3E0BE00E9 for ; Thu, 8 Dec 2016 18:12:18 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5D8D33A04C0 for ; Thu, 8 Dec 2016 18:12:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1773277 - in /pig/branches/branch-0.16: CHANGES.txt test/org/apache/pig/impl/builtin/TestHiveUDTF.java Date: Thu, 08 Dec 2016 18:12:18 -0000 To: commits@pig.apache.org From: daijy@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161208181218.5D8D33A04C0@svn01-us-west.apache.org> archived-at: Thu, 08 Dec 2016 18:12:24 -0000 Author: daijy Date: Thu Dec 8 18:12:17 2016 New Revision: 1773277 URL: http://svn.apache.org/viewvc?rev=1773277&view=rev Log: PIG-5074: Build broken when hadoopversion=20 in branch 0.16 Modified: pig/branches/branch-0.16/CHANGES.txt pig/branches/branch-0.16/test/org/apache/pig/impl/builtin/TestHiveUDTF.java Modified: pig/branches/branch-0.16/CHANGES.txt URL: http://svn.apache.org/viewvc/pig/branches/branch-0.16/CHANGES.txt?rev=1773277&r1=1773276&r2=1773277&view=diff ============================================================================== --- pig/branches/branch-0.16/CHANGES.txt (original) +++ pig/branches/branch-0.16/CHANGES.txt Thu Dec 8 18:12:17 2016 @@ -32,6 +32,8 @@ OPTIMIZATIONS BUG FIXES +PIG-5074: Build broken when hadoopversion=20 in branch 0.16 (szita via daijy) + PIG-5064: NPE in TestScriptUDF#testPythonBuiltinModuleImport1 when JAVA_HOME is not set (water via daijy) PIG-5048: HiveUDTF fail if it is the first expression in projection (nkollar via daijy) Modified: pig/branches/branch-0.16/test/org/apache/pig/impl/builtin/TestHiveUDTF.java URL: http://svn.apache.org/viewvc/pig/branches/branch-0.16/test/org/apache/pig/impl/builtin/TestHiveUDTF.java?rev=1773277&r1=1773276&r2=1773277&view=diff ============================================================================== --- pig/branches/branch-0.16/test/org/apache/pig/impl/builtin/TestHiveUDTF.java (original) +++ pig/branches/branch-0.16/test/org/apache/pig/impl/builtin/TestHiveUDTF.java Thu Dec 8 18:12:17 2016 @@ -17,7 +17,6 @@ */ package org.apache.pig.impl.builtin; -import org.apache.commons.collections4.IteratorUtils; import org.apache.pig.ExecType; import org.apache.pig.PigServer; import org.apache.pig.backend.executionengine.ExecException; @@ -32,6 +31,8 @@ import java.util.Arrays; import java.util.Iterator; import java.util.List; +import com.google.common.collect.Lists; + import static org.apache.pig.builtin.mock.Storage.*; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -63,7 +64,7 @@ public class TestHiveUDTF { pigServer.registerQuery("B = foreach A generate posexplode(a0);"); Iterator result = pigServer.openIterator("B"); - List out = IteratorUtils.toList(result); + List out = Lists.newArrayList(result); assertEquals(2, out.size()); assertTrue("Result doesn't contain the HiveUDTF output", @@ -85,7 +86,7 @@ public class TestHiveUDTF { pigServer.registerQuery("B = foreach A generate a0, posexplode(a0);"); Iterator result = pigServer.openIterator("B"); - List out = IteratorUtils.toList(result); + List out = Lists.newArrayList(result); assertEquals(2, out.size()); assertTrue("Result doesn't contain the HiveUDTF output", @@ -107,7 +108,7 @@ public class TestHiveUDTF { pigServer.registerQuery("b = foreach a generate flatten(COUNT2(name));"); Iterator result = pigServer.openIterator("b"); - List out = IteratorUtils.toList(result); + List out = Lists.newArrayList(result); assertEquals(2, out.size()); assertEquals(tuple(3), out.get(0));