public JoinedRowData replace(RowData row1, RowData row2) {
        this.row1 = row1;
        this.row2 = row2;
        return this;
    }
@Test
    void testReplace() {
        final RowData row1 = GenericRowData.of(1L);
        final RowData row2 = GenericRowData.of(2L);
        final JoinedRowData joinedRow = new JoinedRowData(row1, row2);

        assertThat(joinedRow).hasArity(2);

        joinedRow.replace(GenericRowData.of(3L), GenericRowData.of(4L, 5L));
        assertThat(joinedRow).hasArity(3);
        assertThat(joinedRow).getLong(0).isEqualTo(3);
        assertThat(joinedRow).getLong(1).isEqualTo(4);
        assertThat(joinedRow).getLong(2).isEqualTo(5);
    }