Review Board 1.7.22


Request to review the change.

Review Request #9171 - Created Jan. 31, 2013 and updated

Arun A K
https://issues.apache.org/jira/browse/HIVE-3850
Reviewers
hive
hive-git
Patch for issue https://issues.apache.org/jira/browse/HIVE-3850, Patch has been accepted by the person who raised the issue. Please review.
The change made was tested

Diff revision 1 (Latest)

  1. ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHour.java: Loading...
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHour.java
Revision 85b514a New Change
[20] 84 lines
[+20] [+] public IntWritable evaluate(Text dateString) {
85
    if (t == null) {
85
    if (t == null) {
86
      return null;
86
      return null;
87
    }
87
    }
88

    
   
88

   
89
    calendar.setTime(t.getTimestamp());
89
    calendar.setTime(t.getTimestamp());
90
    result.set(calendar.get(Calendar.HOUR));
90
    result.set(calendar.get(Calendar.HOUR_OF_DAY));
91
    return result;
91
    return result;
92
  }
92
  }
93

    
   
93

   
94
}
94
}
  1. ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHour.java: Loading...