You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2012/06/13 01:12:04 UTC

svn commit: r1349584 - in /hive/trunk/ql/src: java/org/apache/hadoop/hive/ql/ErrorMsg.java java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java test/results/clientnegative/sample.q.out

Author: namit
Date: Tue Jun 12 23:12:03 2012
New Revision: 1349584

URL: http://svn.apache.org/viewvc?rev=1349584&view=rev
Log:
HIVE-3081 ROFL Moment. Numberator and denaminator typos
(Edward Capriolo via namit)


Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
    hive/trunk/ql/src/test/results/clientnegative/sample.q.out

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java?rev=1349584&r1=1349583&r2=1349584&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java Tue Jun 12 23:12:03 2012
@@ -114,8 +114,8 @@ public enum ErrorMsg {
   INVALID_MAPJOIN_HINT(10058, "Neither table specified as map-table"),
   INVALID_MAPJOIN_TABLE(10059, "Result of a union cannot be a map table"),
   NON_BUCKETED_TABLE(10060, "Sampling expression needed for non-bucketed table"),
-  BUCKETED_NUMBERATOR_BIGGER_DENOMINATOR(10061, "Numberator should not be bigger than "
-      + "denaminator in sample clause for table"),
+  BUCKETED_NUMERATOR_BIGGER_DENOMINATOR(10061, "Numerator should not be bigger than "
+      + "denominator in sample clause for table"),
   NEED_PARTITION_ERROR(10062, "Need to specify partition columns because the destination "
       + "table is partitioned"),
   CTAS_CTLT_COEXISTENCE(10063, "Create table command does not allow LIKE and AS-SELECT in "

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java?rev=1349584&r1=1349583&r2=1349584&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java Tue Jun 12 23:12:03 2012
@@ -6532,7 +6532,7 @@ public class SemanticAnalyzer extends Ba
 
       if (num > den) {
         throw new SemanticException(
-            ErrorMsg.BUCKETED_NUMBERATOR_BIGGER_DENOMINATOR.getMsg() + " "
+            ErrorMsg.BUCKETED_NUMERATOR_BIGGER_DENOMINATOR.getMsg() + " "
             + tab.getTableName());
       }
 

Modified: hive/trunk/ql/src/test/results/clientnegative/sample.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientnegative/sample.q.out?rev=1349584&r1=1349583&r2=1349584&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientnegative/sample.q.out (original)
+++ hive/trunk/ql/src/test/results/clientnegative/sample.q.out Tue Jun 12 23:12:03 2012
@@ -1 +1 @@
-FAILED: SemanticException [Error 10061]: Numberator should not be bigger than denaminator in sample clause for table srcbucket
+FAILED: SemanticException [Error 10061]: Numerator should not be bigger than denominator in sample clause for table srcbucket