[
https://issues.apache.org/jira/browse/PIG-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Gates resolved PIG-2754.
-----------------------------
Resolution: Invalid
> pig can't sum with inner mutiply
> --------------------------------
>
> Key: PIG-2754
> URL: https://issues.apache.org/jira/browse/PIG-2754
> Project: Pig
> Issue Type: Bug
> Components: internal-udfs
> Affects Versions: 0.10.0
> Environment: GNU bash, version 3.2.25(1)-release
> (x86_64-redhat-linux-gnu)
> Reporter: Mark Liu
>
> sample code like that:
> txns = LOAD '/test' USING PigStorage() AS (domain:chararray,amount:double);
> txns_by_domain = GROUP txns BY domain;
> test_txns = FOREACH txns_by_domain { domain = group; test_out =
> SUM(txns.amount * txns.amount);}
> ...
> it looks built-in function SUM did not support inner multiply and sum up.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira