pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1577979 - in /pig/trunk: CHANGES.txt src/org/apache/pig/builtin/ToString.java
Date Sun, 16 Mar 2014 04:06:23 GMT
Author: daijy
Date: Sun Mar 16 04:06:23 2014
New Revision: 1577979

URL: http://svn.apache.org/r1577979
Log:
PIG-3805: ToString(datetime [, format string]) doesn't work without the second argument

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/builtin/ToString.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1577979&r1=1577978&r2=1577979&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Sun Mar 16 04:06:23 2014
@@ -99,6 +99,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-3805: ToString(datetime [, format string]) doesn't work without the second argument (jennythompson
via daijy)
+
 PIG-3809: AddForEach optimization doesn't set the alias of the added foreach (cheolsoo)
 
 PIG-3811: PigServer.registerScript() wraps exception incorrectly on parsing errors (prkommireddi)

Modified: pig/trunk/src/org/apache/pig/builtin/ToString.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/builtin/ToString.java?rev=1577979&r1=1577978&r2=1577979&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/builtin/ToString.java (original)
+++ pig/trunk/src/org/apache/pig/builtin/ToString.java Sun Mar 16 04:06:23 2014
@@ -62,6 +62,9 @@ public class ToString extends EvalFunc<S
         List<FuncSpec> funcList = new ArrayList<FuncSpec>();
         Schema s = new Schema();
         s.add(new Schema.FieldSchema(null, DataType.DATETIME));
+        funcList.add(new FuncSpec(this.getClass().getName(), s));
+        s = new Schema();
+        s.add(new Schema.FieldSchema(null, DataType.DATETIME));
         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
         funcList.add(new FuncSpec(this.getClass().getName(), s));
         return funcList;



Mime
View raw message