hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov" <apivova...@gmail.com>
Subject Re: Review Request 32732: HIVE-3378 UDF to obtain the numeric day of an year from date or timestamp in HIVE
Date Thu, 09 Apr 2015 21:28:46 GMT


> On April 9, 2015, 8:34 p.m., Swarnim Kulkarni wrote:
> > ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFDayOfYear.java, line
50
> > <https://reviews.apache.org/r/32732/diff/1/?file=912253#file912253line50>
> >
> >     Does this need to be a global variable? Can't you move this inside the evaluate
method itself?

The code repeats common code blocks from other recently added UDFs, e.g. GenericUDFAddMonths
private final Text output = new Text();


- Alexander


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


On April 1, 2015, 5:56 p.m., Alexander Pivovarov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32732/
> -----------------------------------------------------------
> 
> (Updated April 1, 2015, 5:56 p.m.)
> 
> 
> Review request for hive and Jason Dere.
> 
> 
> Bugs: HIVE-3378
>     https://issues.apache.org/jira/browse/HIVE-3378
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> HIVE-3378 UDF to obtain the numeric day of an year from date or timestamp in HIVE
> 
> 
> Diffs
> -----
> 
>   ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 2476e832b8b7101971ea2226368aa82633b7e7d1

>   ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFDayOfYear.java PRE-CREATION

>   ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestGenericUDFDayOfYear.java PRE-CREATION

>   ql/src/test/queries/clientpositive/udf_dayofyear.q PRE-CREATION 
>   ql/src/test/results/clientpositive/show_functions.q.out 22091d06241218a5c0ee21d6ee6be00a71706971

>   ql/src/test/results/clientpositive/udf_dayofyear.q.out PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/32732/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexander Pivovarov
> 
>


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