hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khorg...@apache.org
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 GMT
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 <khorgath@gmail.com>
Authored: Tue May 19 14:11:38 2015 -0700
Committer: Sushanth Sowmyan <khorgath@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());


Mime
View raw message