You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ch...@apache.org on 2013/11/20 19:33:57 UTC

svn commit: r1543900 - in /pig/trunk: CHANGES.txt src/docs/src/documentation/content/xdocs/func.xml

Author: cheolsoo
Date: Wed Nov 20 18:33:57 2013
New Revision: 1543900

URL: http://svn.apache.org/r1543900
Log:
PIG-3582: Document SUM, MIN, MAX, and AVG functions for BigInteger and BigDecimal (harichinnan via cheolsoo)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/docs/src/documentation/content/xdocs/func.xml

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1543900&r1=1543899&r2=1543900&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Wed Nov 20 18:33:57 2013
@@ -54,6 +54,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-3582: Document SUM, MIN, MAX, and AVG functions for BigInteger and BigDecimal (harichinnan via cheolsoo)
+
 PIG-3576: NPE due to PIG-3549 when job never gets submitted (lbendig via cheolsoo)
 
 PIG-3525: PigStats.get() and ScriptState.get() shouldn't return MR-specific objects (cheolsoo)

Modified: pig/trunk/src/docs/src/documentation/content/xdocs/func.xml
URL: http://svn.apache.org/viewvc/pig/trunk/src/docs/src/documentation/content/xdocs/func.xml?rev=1543900&r1=1543899&r2=1543900&view=diff
==============================================================================
--- pig/trunk/src/docs/src/documentation/content/xdocs/func.xml (original)
+++ pig/trunk/src/docs/src/documentation/content/xdocs/func.xml Wed Nov 20 18:33:57 2013
@@ -87,7 +87,7 @@ decoded_strings = FOREACH encoded_string
                <p>expression</p>
             </td>
             <td>
-               <p>Any expression whose result is a bag. The elements of the bag should be data type int, long, float, or double.</p>
+               <p>Any expression whose result is a bag. The elements of the bag should be data type int, long, float, double, bigdecimal, biginteger or bytearray.</p>
             </td>
          </tr> 
    </table>
@@ -150,6 +150,12 @@ DUMP C;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -173,6 +179,12 @@ DUMP C;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal *</p>
+            </td>
+            <td>
+               <p>bigdecimal *</p>
+            </td>
+            <td>
                <p>error </p>
             </td>
             <td>
@@ -180,6 +192,7 @@ DUMP C;
             </td>
          </tr> 
    </table>
+   <p>* Average values for datatypes bigdecimal and biginteger have precision setting <a href="http://docs.oracle.com/javase/7/docs/api/java/math/MathContext.html#DECIMAL128">java.math.MathContext.DECIMAL128</a>.</p>
    </section></section>
    
    <!-- ++++++++++++++++++++++++++++++++++++++++++++++ --> 
@@ -553,7 +566,7 @@ Y = filter X by IsEmpty(SSN_NAME);
                <p>expression</p>
             </td>
             <td>
-               <p>An expression with data types int, long, float, double, or chararray.</p>
+               <p>An expression with data types int, long, float, double, bigdecimal, biginteger, chararray, datetime or bytearray.</p>
             </td>
          </tr> 
    </table></section>
@@ -614,6 +627,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -640,6 +659,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -676,7 +701,7 @@ DUMP X;
                <p>expression</p>
             </td>
             <td>
-               <p>An expression with data types int, long, float, double, or chararray.</p>
+               <p>An expression with data types int, long, float, double, bigdecimal, biginteger, chararray, datetime or bytearray.</p>
             </td>
          </tr> 
    </table></section>
@@ -738,6 +763,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -764,6 +795,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -1045,7 +1082,7 @@ DUMP X;
                <p>expression</p>
             </td>
             <td>
-               <p>An expression with data types int, long, float, double, or bytearray cast as double.</p>
+               <p>An expression with data types int, long, float, double, bigdecimal, biginteger or bytearray cast as double.</p>
             </td>
          </tr> 
    </table></section>
@@ -1102,6 +1139,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>chararray </p>
             </td>
             <td>
@@ -1125,6 +1168,12 @@ DUMP X;
                <p>double </p>
             </td>
             <td>
+               <p>bigdecimal </p>
+            </td>
+            <td>
+               <p>biginteger </p>
+            </td>
+            <td>
                <p>error </p>
             </td>
             <td>