Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11303

DataFrame GroupBy().size() aggregation produces incorrect results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 2.25.0
    • Fix Version/s: 2.26.0
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      size is treated as a liftable aggregation which assumes it is commutative and associative, but it's not actually associative. It can be lifted, but the post agg step needs to be a sum.
      This means the size aggregation will produce incorrect results.

        Attachments

          Activity

            People

            • Assignee:
              bhulette Brian Hulette
              Reporter:
              bhulette Brian Hulette
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m