SqlStreamInput/Output use TransportVersion from a read-in Version constant. We need to remove the useage of `transportVersion` field
x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plugin/CursorTests.java
Cursor cursor = Cursor.EMPTY;
        ZoneId zone = randomZone();
        String encoded = encodeToString(cursor, zone);
        BasicFormatter formatter = randomFormatter();
        String withFormatter = attachFormatter(encoded, formatter);
        assertEquals(StringUtils.EMPTY, withFormatter);
        Tuple<Cursor, ZoneId> decoded = decodeFromStringWithZone(withFormatter, WRITEABLE_REGISTRY);
        assertEquals(cursor, decoded.v1());
        assertNull(decoded.v2());
        assertNull(Cursors.decodeFormatter(withFormatter));
    }
    public void testAttachingFormatterToCursorFromOtherVersion() {
        Cursor cursor = randomSearchHitCursor();
        ZoneId zone = randomZone();
        String encoded = encodeToString(cursor, randomValueOtherThan(Version.CURRENT, () -> VersionUtils.randomVersion(random())), zone);
        BasicFormatter formatter = randomFormatter();
        String withFormatter = attachFormatter(encoded, formatter);
        assertEquals(formatter, Cursors.decodeFormatter(withFormatter));
        expectThrows(SqlIllegalArgumentException.class, () -> Cursors.decodeFromStringWithZone(withFormatter, WRITEABLE_REGISTRY));
    }
    private BasicFormatter randomFormatter() {
        int cols = randomInt(3);
        return new BasicFormatter(
            randomList(cols, cols, () -> new ColumnInfo(randomAlphaOfLength(5), randomAlphaOfLength(5), randomAlphaOfLength(5))),
            List.of(randomList(cols, cols, () -> List.of(randomAlphaOfLength(5)))),
            randomBoolean() ? SimpleFormatter.FormatOption.TEXT : SimpleFormatter.FormatOption.CLI
        );
    }
}