Author: daijy
Date: Wed May 20 21:12:27 2015
New Revision: 1680680

URL: http://svn.apache.org/r1680680
Log:
PIG-4562: Typo in DataType.toDateTime

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/data/DataType.java

Modified: pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1680680&r1=1680679&r2=1680680&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Wed May 20 21:12:27 2015
@@ -78,6 +78,8 @@ PIG-4333: Split BigData tests into multi
  
 BUG FIXES
 
+PIG-4562: Typo in DataType.toDateTime (daijy)
+
 PIG-4559: Fix several new tez e2e test failures (daijy)
 
 PIG-4506: binstorage fails to write biginteger (ssavvides via daijy)

Modified: pig/trunk/src/org/apache/pig/data/DataType.java
URL: 
http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/data/DataType.java?rev=1680680&r1=1680679&r2=1680680&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/data/DataType.java (original)
+++ pig/trunk/src/org/apache/pig/data/DataType.java Wed May 20 21:12:27 2015
@@ -1126,7 +1126,7 @@ public class DataType {
             case UNKNOWN:
             default:
                 int errCode = 1071;
-                String msg = "Cannot convert a " + findTypeName(o) + " to a 
Boolean";
+                String msg = "Cannot convert a " + findTypeName(o) + " to a 
DateTime";
                 throw new ExecException(msg, errCode, PigException.INPUT);
             }
         } catch (ClassCastException cce) {
@@ -1135,11 +1135,11 @@ public class DataType {
             throw ee;
         } catch (NumberFormatException nfe) {
             int errCode = 1074;
-            String msg = "Problem with formatting. Could not convert " + o + " 
to Float.";
+            String msg = "Problem with formatting. Could not convert " + o + " 
to DateTime.";
             throw new ExecException(msg, errCode, PigException.INPUT, nfe);
         } catch (Exception e) {
             int errCode = 2054;
-            String msg = "Internal error. Could not convert " + o + " to 
Float.";
+            String msg = "Internal error. Could not convert " + o + " to 
DateTime.";
             throw new ExecException(msg, errCode, PigException.BUG);
         }
     }


Reply via email to