Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2754

pig can't sum with inner mutiply

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: internal-udfs
    • Labels:
      None
    • Environment:

      GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mar Mark Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: