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

GroupIntoBatchesTest is failing

Details

    Description

      Currently failing a test on core sdk on the following assertion. From the test description, it seems like (totalNumBatches <= numElements && totalNumBatches >= numElements / batchSize) is what is wanted instead, but currently it is testing for numFullBatches instead and is failing the test. Is this intended?

       

      Current code:

      assertTrue( String.format( "total number of batches should be in the range [%d, %d] but got %d", numElements, numElements / batchSize, numFullBatches), numFullBatches <= numElements && numFullBatches >= numElements / batchSize)

      Source:

      https://github.com/apache/beam/blob/v2.34.0/sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/GroupIntoBatchesTest.java#L295

      Attachments

        Activity

          People

            Unassigned Unassigned
            fructokinase Alex Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: