You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2014/03/16 05:06:23 UTC
svn commit: r1577979 - in /pig/trunk: CHANGES.txt
src/org/apache/pig/builtin/ToString.java
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;