Author: rohini
Date: Fri Aug 12 22:25:01 2022
New Revision: 1903378

URL: http://svn.apache.org/viewvc?rev=1903378&view=rev
Log:
PIG-5425: Pig 0.15 and later don't set context signature correctly (jtolar via 
rohini)

Modified:
    pig/trunk/CHANGES.txt
    
pig/trunk/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java

Modified: pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1903378&r1=1903377&r2=1903378&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Fri Aug 12 22:25:01 2022
@@ -108,6 +108,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-5425: Pig 0.15 and later don't set context signature correctly (jtolar via 
rohini)
+
 PIG-5413: [spark] TestStreaming.testInputCacheSpecs failing with "File 
script1.pl was already registered" (knoguchi)
 
 PIG-5415: [spark] TestScriptLanguage conflict between multiple SparkContext 
(after spark2.4 upgrade) (knoguchi)

Modified: 
pig/trunk/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java
URL: 
http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java?rev=1903378&r1=1903377&r2=1903378&view=diff
==============================================================================
--- 
pig/trunk/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java
 (original)
+++ 
pig/trunk/src/org/apache/pig/newplan/logical/expression/ExpToPhyTranslationVisitor.java
 Fri Aug 12 22:25:01 2022
@@ -507,6 +507,7 @@ public class ExpToPhyTranslationVisitor
                     .getNextNodeId(DEFAULT_SCOPE)), -1,
                     null, op.getFuncSpec(), (EvalFunc) f);
             ((POUserFunc)p).setSignature(op.getSignature());
+            ((EvalFunc)f).setUDFContextSignature(op.getSignature());  // See 
PIG-5425
             //reinitialize input schema from signature
             if (((POUserFunc)p).getFunc().getInputSchema() == null) {
                 ((POUserFunc)p).setFuncInputSchema(op.getSignature());


Reply via email to