You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ng...@apache.org on 2018/07/25 22:26:39 UTC
hive git commit: HIVE-20015: Populate ArrayList with Constructor
(Daniel Voros, reviewed by Lazlo Bodor, Zoltan Haindrich)
Repository: hive
Updated Branches:
refs/heads/master 14bb84088 -> 9d78fac36
HIVE-20015: Populate ArrayList with Constructor (Daniel Voros, reviewed by Lazlo Bodor, Zoltan Haindrich)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9d78fac3
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9d78fac3
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9d78fac3
Branch: refs/heads/master
Commit: 9d78fac365418dd781ead48dfc69f2143d3e7eb2
Parents: 14bb840
Author: Naveen Gangam <ng...@apache.org>
Authored: Wed Jul 25 18:26:25 2018 -0400
Committer: Naveen Gangam <ng...@apache.org>
Committed: Wed Jul 25 18:26:25 2018 -0400
----------------------------------------------------------------------
ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/9d78fac3/ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java
index 5bf0625..a0bd649 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java
@@ -596,12 +596,9 @@ public class MapWork extends BaseWork {
}
public ArrayList<Path> getPaths() {
- ArrayList<Path> ret=new ArrayList<>();
- ret.addAll(pathToAliases.keySet());
- return ret;
+ return new ArrayList<Path>(pathToAliases.keySet());
}
-
public ArrayList<PartitionDesc> getPartitionDescs() {
return new ArrayList<PartitionDesc>(aliasToPartnInfo.values());
}