Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06A24173C7 for ; Tue, 19 May 2015 21:13:27 +0000 (UTC) Received: (qmail 7042 invoked by uid 500); 19 May 2015 21:13:26 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 7000 invoked by uid 500); 19 May 2015 21:13:26 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 6989 invoked by uid 99); 19 May 2015 21:13:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 21:13:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BDAA3E35A4; Tue, 19 May 2015 21:13:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: khorgath@apache.org To: commits@hive.apache.org Message-Id: <2af99afcfedf43b1b2f2a8d63b1c1723@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hive git commit: HIVE-10727 : Import throws error message "org.apache.thrift.protocol.TProtocolException: Required field 'filesAdded' is unset!" (Sushanth Sowmyan, reviewed by Alan Gates) Date: Tue, 19 May 2015 21:13:26 +0000 (UTC) Repository: hive Updated Branches: refs/heads/master 46b4cc9c5 -> c567a77c2 HIVE-10727 : Import throws error message "org.apache.thrift.protocol.TProtocolException: Required field 'filesAdded' is unset!" (Sushanth Sowmyan, reviewed by Alan Gates) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c567a77c Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c567a77c Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c567a77c Branch: refs/heads/master Commit: c567a77c214e1f97fffda8614cb05db581c6e151 Parents: 46b4cc9 Author: Sushanth Sowmyan Authored: Tue May 19 14:11:38 2015 -0700 Committer: Sushanth Sowmyan Committed: Tue May 19 14:13:18 2015 -0700 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/c567a77c/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 1bb9b15..8c948a9 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -1930,6 +1930,8 @@ private void constructOneLBLocationMap(FileStatus fSta, for (Path p : newFiles) { insertData.addToFilesAdded(p.toString()); } + } else { + insertData.setFilesAdded(new ArrayList()); } FireEventRequest rqst = new FireEventRequest(true, data); rqst.setDbName(tbl.getDbName());