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 E4794200BBD for ; Tue, 8 Nov 2016 14:22:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E3246160B0A; Tue, 8 Nov 2016 13:22:59 +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 5CE06160AFA for ; Tue, 8 Nov 2016 14:22:59 +0100 (CET) Received: (qmail 43702 invoked by uid 500); 8 Nov 2016 13:22:58 -0000 Mailing-List: contact dev-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 dev@pig.apache.org Received: (qmail 43685 invoked by uid 500); 8 Nov 2016 13:22:58 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 43678 invoked by uid 99); 8 Nov 2016 13:22:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 13:22:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B7952C1F54 for ; Tue, 8 Nov 2016 13:22:58 +0000 (UTC) Date: Tue, 8 Nov 2016 13:22:58 +0000 (UTC) From: "Nandor Kollar (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-5048) HiveUDTF fail if it is the first expression in projection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 13:23:00 -0000 [ https://issues.apache.org/jira/browse/PIG-5048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647550#comment-15647550 ] Nandor Kollar commented on PIG-5048: ------------------------------------ Attached patch version 3, decided not to use mock Store in the tests and changed hive-contrib to test dependency. > HiveUDTF fail if it is the first expression in projection > --------------------------------------------------------- > > Key: PIG-5048 > URL: https://issues.apache.org/jira/browse/PIG-5048 > Project: Pig > Issue Type: Bug > Components: impl > Reporter: Daniel Dai > Assignee: Nandor Kollar > Fix For: 0.17.0, 0.16.1 > > Attachments: PIG-5048-1.patch, PIG-5048-2.patch, PIG-5048-3.patch, PIG-5048.patch > > > The following script fail: > {code} > define explode HiveUDTF('explode'); > A = load 'bag.txt' as (a0:{(b0:chararray)}); > B = foreach A generate explode(a0); > dump B; > {code} > Message: Unimplemented at org.apache.pig.data.UnlimitedNullTuple.size(UnlimitedNullTuple.java:31) > If it is not the first projection, the script pass: > {code} > define explode HiveUDTF('explode'); > A = load 'bag.txt' as (a0:{(b0:chararray)}); > B = foreach A generate a0, explode(a0); > dump B; > {code} > Thanks [~nkollar] reporting it! -- This message was sent by Atlassian JIRA (v6.3.4#6332)