[
https://issues.apache.org/jira/browse/PIG-4906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cristian Galán updated PIG-4906:
--------------------------------
Release Note:
-4 new functions: SUM, AVG, MAX and MIN for BigDecimal and 4 test for each
function.
-An another outputschema. This output takes the inner alias and type of
inputschema and returns the same alias with "_over" and the type. This is
because in a foreach like the next:
x = FOREACH SUM {
ini = FOREACH test GENERATE id, id_2;
GENERATE FLATTEN(MYSTITCH(ini, MYOVER(test.impt_prima, 'sum(bigdecimal)'),
MYOVER(test.impt_1, 'sum(bigdecimal)'),
MYOVER(test.impt_2, 'sum(bigdecimal)')));
with the normal OVER function the foreach fails because all MYOVERS return the
same alias.
Status: Patch Available (was: Open)
> Add Bigdecimal functions in Over function
> -----------------------------------------
>
> Key: PIG-4906
> URL: https://issues.apache.org/jira/browse/PIG-4906
> Project: Pig
> Issue Type: Improvement
> Components: piggybank
> Affects Versions: 0.15.0
> Environment: Hortonworks 2.4.2
> Reporter: Cristian Galán
> Priority: Minor
> Fix For: 0.16.0, 0.15.1
>
> Attachments: Over.java, over.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> In the piggybank, the Over function class don't include the bigdecimals
> methods for sum, max, min and avg.
> I attach Over.class with this changes. If anybody can do the PR, I appreciate
> it
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)