hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V" <go...@hortonworks.com>
Subject Review Request: Vectorized Timestamp functions for long nanosecond based timestamps
Date Wed, 29 May 2013 23:36:13 GMT

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

Review request for hive, Jitendra Pandey and Eric Hanson.


Description
-------

Timestamp UDFs for vectorized long nanosecond timestamps - all of them convert timestamp into
a corresponding long/int value (year, month, week-of-year, day-of-month, hour, minute, second,
unix-timestamp).


This addresses bug HIVE-4608.
    https://issues.apache.org/jira/browse/HIVE-4608


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFDayOfMonthLong.java
PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFHourLong.java PRE-CREATION

  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFMinuteLong.java PRE-CREATION

  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFMonthLong.java PRE-CREATION

  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFSecondLong.java PRE-CREATION

  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFTimestampFieldLong.java
PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFUnixTimeStampLong.java
PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFWeekOfYearLong.java
PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFYearLong.java PRE-CREATION

  ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorTimestampExpressions.java
PRE-CREATION 

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


Testing
-------

Unit tests included which compare each UDF against its non-vectorized one's output, with random
data and year boundary data (+1,0,-1).


Thanks,

Gopal V


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