commit | da257e255e9bb5be8fdc1dcdbef31000fe035184 | [log] [tgz] |
---|---|---|
author | Rohini Palaniswamy <rohini@apache.org> | Mon Oct 02 22:05:03 2017 +0000 |
committer | Rohini Palaniswamy <rohini@apache.org> | Mon Oct 02 22:05:03 2017 +0000 |
tree | 6f3fd5bdf62dff46e4372a717610456d48b7f731 | |
parent | aba818160437bd3d9d94bf427ba7015637b59eab [diff] |
PIG-5307: NPE in TezOperDependencyParallelismEstimator (rohini) git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1810606 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt index ec1bc73..99df4cb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt
@@ -52,6 +52,8 @@ BUG FIXES +PIG-5307: NPE in TezOperDependencyParallelismEstimator (rohini) + PIG-5272: BagToTuple output schema is incorrect (juen1jp via rohini) PIG-5271: StackOverflowError when compiling in Tez mode (with union and replicated join) (knoguchi)
diff --git a/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java b/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java index d892e9e..b4223db 100644 --- a/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java +++ b/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java
@@ -217,7 +217,7 @@ public void visitFilter(POFilter fl) throws VisitorException { if (fl.getPlan().size()==1 && fl.getPlan().getRoots().get(0) instanceof ConstantExpression) { ConstantExpression cons = (ConstantExpression)fl.getPlan().getRoots().get(0); - if (cons.getValue().equals(Boolean.TRUE)) { + if (Boolean.TRUE.equals(cons.getValue())) { // skip all true condition return; }