Re: implementing moving average as a UDF

2011-02-22 Thread John Sichi
Yes, your query makes sense and should already work as expected. The idea of HIVE-1994 is that once the new annotation is available, we'll make a guarantee that your query as written below will continue to work in the face of any new optimizer changes (with the downside being that in some cases

Re: implementing moving average as a UDF

2011-02-22 Thread Igor Tatarinov
Thank you, John. It's not quite clear from the page whether my solution: 1. makes sense 2. works now 3. will work in the future if the issue is resolved/implemented Could you elaborate? Also, there is no mentioning of UDF object sharing (between mappers) in the current implementation. Is this a

Re: implementing moving average as a UDF

2011-02-22 Thread John Sichi
Please see the discussion in this JIRA issue: https://issues.apache.org/jira/browse/HIVE-1994 JVS On Feb 21, 2011, at 10:45 PM, Igor Tatarinov wrote: > I would like to implement the moving average as a UDF (instead of a streaming > reducer). Here is what I am thinking. Please let me know if I