Review Board 1.7.22


Adding review request for https://issues.apache.org/jira/browse/HIVE-3559

Review Request #9248 - Created Feb. 1, 2013 and updated

Arun A K
Reviewers
hive
hive-git
Patch attached for https://issues.apache.org/jira/browse/HIVE-3559
Test cases added, https://issues.apache.org/jira/browse/HIVE-3559 
    udf_right.q
    udf_right.q.out

ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
Revision fc0256c New Change
[20] 100 lines
[+20]
101
import org.apache.hadoop.hive.ql.udf.UDFRegExp;
101
import org.apache.hadoop.hive.ql.udf.UDFRegExp;
102
import org.apache.hadoop.hive.ql.udf.UDFRegExpExtract;
102
import org.apache.hadoop.hive.ql.udf.UDFRegExpExtract;
103
import org.apache.hadoop.hive.ql.udf.UDFRegExpReplace;
103
import org.apache.hadoop.hive.ql.udf.UDFRegExpReplace;
104
import org.apache.hadoop.hive.ql.udf.UDFRepeat;
104
import org.apache.hadoop.hive.ql.udf.UDFRepeat;
105
import org.apache.hadoop.hive.ql.udf.UDFReverse;
105
import org.apache.hadoop.hive.ql.udf.UDFReverse;

    
   
106
import org.apache.hadoop.hive.ql.udf.UDFRightSubstring;
106
import org.apache.hadoop.hive.ql.udf.UDFRound;
107
import org.apache.hadoop.hive.ql.udf.UDFRound;
107
import org.apache.hadoop.hive.ql.udf.UDFRpad;
108
import org.apache.hadoop.hive.ql.udf.UDFRpad;
108
import org.apache.hadoop.hive.ql.udf.UDFSecond;
109
import org.apache.hadoop.hive.ql.udf.UDFSecond;
109
import org.apache.hadoop.hive.ql.udf.UDFSign;
110
import org.apache.hadoop.hive.ql.udf.UDFSign;
110
import org.apache.hadoop.hive.ql.udf.UDFSin;
111
import org.apache.hadoop.hive.ql.udf.UDFSin;
[+20] [20] 188 lines
[+20]
299
    registerUDF("trim", UDFTrim.class, false);
300
    registerUDF("trim", UDFTrim.class, false);
300
    registerUDF("ltrim", UDFLTrim.class, false);
301
    registerUDF("ltrim", UDFLTrim.class, false);
301
    registerUDF("rtrim", UDFRTrim.class, false);
302
    registerUDF("rtrim", UDFRTrim.class, false);
302
    registerUDF("length", UDFLength.class, false);
303
    registerUDF("length", UDFLength.class, false);
303
    registerUDF("reverse", UDFReverse.class, false);
304
    registerUDF("reverse", UDFReverse.class, false);

    
   
305
    registerUDF("rsubstring", UDFRightSubstring.class, false);
304
    registerGenericUDF("field", GenericUDFField.class);
306
    registerGenericUDF("field", GenericUDFField.class);
305
    registerUDF("find_in_set", UDFFindInSet.class, false);
307
    registerUDF("find_in_set", UDFFindInSet.class, false);
306

    
   
308

   
307
    registerUDF("like", UDFLike.class, true);
309
    registerUDF("like", UDFLike.class, true);
308
    registerUDF("rlike", UDFRegExp.class, true);
310
    registerUDF("rlike", UDFRegExp.class, true);
[+20] [20] 1044 lines
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFRightSubstring.java
New File
 
ql/src/test/queries/clientpositive/udf_right.q
New File
 
ql/src/test/results/clientpositive/udf_right.q.out
New File
 
  1. ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java: Loading...
  2. ql/src/java/org/apache/hadoop/hive/ql/udf/UDFRightSubstring.java: Loading...
  3. ql/src/test/queries/clientpositive/udf_right.q: Loading...
  4. ql/src/test/results/clientpositive/udf_right.q.out: Loading...