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

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

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.25.0
    • 2.26.0
    • sdk-py-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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