@VisibleForTesting
    void setIsPartialBufferCleanupRequired() {
        isPartialBufferCleanupRequired = true;
    }
@TestTemplate
    void testSkipPartialDataLongRecordOccupyEntireBuffer() throws Exception {
        final BufferWritingResultPartition writer = createResultPartition();
        final PipelinedApproximateSubpartition subpartition =
                getPipelinedApproximateSubpartition(writer);

        writer.emitRecord(toByteBuffer(0, 1, 2, 3, 4, 5, 6, 7, 8, 42), 0);

        assertContent(requireNonNull(subpartition.pollBuffer()).buffer(), null, 0, 1, 2, 3);

        subpartition.setIsPartialBufferCleanupRequired();
        assertThat(subpartition.pollBuffer()).isNull();
    }