Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D4831154F for ; Tue, 9 Sep 2014 05:51:30 +0000 (UTC) Received: (qmail 39188 invoked by uid 500); 9 Sep 2014 05:51:29 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 39068 invoked by uid 500); 9 Sep 2014 05:51:29 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 38760 invoked by uid 500); 9 Sep 2014 05:51:29 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 38724 invoked by uid 99); 9 Sep 2014 05:51:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 05:51:28 +0000 Date: Tue, 9 Sep 2014 05:51:28 +0000 (UTC) From: "Viji (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-8028) Hive should fail when sourced sub-script fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Viji created HIVE-8028: -------------------------- Summary: Hive should fail when sourced sub-script fails Key: HIVE-8028 URL: https://issues.apache.org/jira/browse/HIVE-8028 Project: Hive Issue Type: Bug Components: CLI Affects Versions: 0.12.0 Reporter: Viji The source-command executor is a CLI-only feature, and the fault lies here: https://github.com/apache/hive/blob/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java#L128. The processFile method within the source sub clause returns an "exit code" based on success or failure, which ought to be bubbled up if its non-zero, but we are plainly ignoring it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)