File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/org/apache/pig/builtin Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ PIG-5282: Upgade to Java 8 (satishsaley via rohini)
2626
2727IMPROVEMENTS
2828
29+ PIG-5389: Passing null to REPLACE udf preventing JIT optimization (knoguchi)
30+
2931PIG-5382: Log the name when POStore fails on write (knoguchi)
3032
3133PIG-5255: Improvements to bloom join (satishsaley via rohini)
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ public String exec(Tuple input) throws IOException {
5858 String source = (String )input .get (0 );
5959 String target = (String )input .get (1 );
6060
61+ if (source == null ) {
62+ return null ;
63+ }
64+
6165 if (target == null ) {
6266 warn ("Replace : Regular expression is null" , PigWarning .UDF_WARNING_1 );
6367 return null ;
You can’t perform that action at this time.
0 commit comments