hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anandha L Ranganahan" <analog.s...@gmail.com>
Subject Review Request 15755: HIVE-5810:create a function add_date as exists in mysql
Date Thu, 21 Nov 2013 08:13:03 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15755/
-----------------------------------------------------------

Review request for hive and Thejas Nair.


Bugs: https://issues.apache.org/jira/browse/HIVE-5810
    https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/HIVE-5810


Repository: hive-git


Description
-------

The function add_date(date,unit,expr) and returns the value.

For example,
add_date('2013-11-09','DAY',2) will return 2013-11-11.
add_date('2013-11-09','Month',2) will return 2014-01-09.
add_date('2013-11-09','Year',2) will return 2014-11-11.


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 5eb321c 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFAddDate.java e69de29 
  ql/src/test/queries/clientpositive/date_udf.q c55b9f9 
  ql/src/test/results/clientpositive/date_udf.q.out 28e4f08 

Diff: https://reviews.apache.org/r/15755/diff/


Testing
-------


Thanks,

Anandha L Ranganahan


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message