From dev-return-59444-archive-asf-public=cust-asf.ponee.io@pig.apache.org Tue Apr 10 16:30:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id CF31718064C for ; Tue, 10 Apr 2018 16:30:03 +0200 (CEST) Received: (qmail 14457 invoked by uid 500); 10 Apr 2018 14:30:02 -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 14436 invoked by uid 500); 10 Apr 2018 14:30:02 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 14433 invoked by uid 99); 10 Apr 2018 14:30:02 -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; Tue, 10 Apr 2018 14:30:02 +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 573211A0344 for ; Tue, 10 Apr 2018 14:30:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id U-SEiwWQ4hEb for ; Tue, 10 Apr 2018 14:30:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 100D75F36B for ; Tue, 10 Apr 2018 14:30:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 580D1E0110 for ; Tue, 10 Apr 2018 14:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1ED2921208 for ; Tue, 10 Apr 2018 14:30:00 +0000 (UTC) Date: Tue, 10 Apr 2018 14:30:00 +0000 (UTC) From: "Koji Noguchi (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PIG-5335) Error message from range projection completely misleading MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Koji Noguchi created PIG-5335: --------------------------------- Summary: Error message from range projection completely misleading Key: PIG-5335 URL: https://issues.apache.org/jira/browse/PIG-5335 Project: Pig Issue Type: Bug Reporter: Koji Noguchi Assignee: Koji Noguchi {code} A = load 'input.txt' as (a0,a1,a2,a3); B = FOREACH A GENERATE a0, a1, a2, a3; store B into '/tmp/deleteme'; C = FOREACH A GENERATE a0, b1, a2, a3; D = FOREACH C GENERATE a0..a2; (end of script, no store, nothing) {code} Error message {panel} 2018-04-10 10:22:33,360 \[main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Invalid field projection. Projected field \[a0] does not exist in schema: a0:bytearray,a0:bytearray,a2:bytearray,a3:bytearray. {panel} At least two issues. # Error should be about FOREACH for C referencing non-existing field 'b1'. But the error message is saying something about 'a0'. # Script itself is not using relation C and D at all. It's confusing to see errors coming out of unused relations. -- This message was sent by Atlassian JIRA (v7.6.3#76005)