You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2015/05/20 18:01:59 UTC

[40/50] [abbrv] 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)

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/parquet
Commit: c567a77c214e1f97fffda8614cb05db581c6e151
Parents: 46b4cc9
Author: Sushanth Sowmyan <kh...@gmail.com>
Authored: Tue May 19 14:11:38 2015 -0700
Committer: Sushanth Sowmyan <kh...@gmail.com>
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<String>());
       }
       FireEventRequest rqst = new FireEventRequest(true, data);
       rqst.setDbName(tbl.getDbName());