SqlStreamInput/Output use TransportVersion from a read-in Version constant. We need to remove the useage of `transportVersion` field
server/src/main/java/org/elasticsearch/TransportVersion.java
public static final TransportVersion MINIMUM_COMPATIBLE = V_7_17_0;
    static NavigableMap<Integer, TransportVersion> getAllVersionIds(Class<?> cls) {
        NavigableMap<Integer, TransportVersion> builder = new TreeMap<>();
        Map<String, TransportVersion> uniqueIds = new HashMap<>();
        Set<String> ignore = Set.of("ZERO", "CURRENT", "MINIMUM_COMPATIBLE");
        for (Field declaredField : cls.getFields()) {
            if (declaredField.getType().equals(TransportVersion.class)) {
                String fieldName = declaredField.getName();
                if (ignore.contains(fieldName)) {
                    continue;
                }
                try {
                    TransportVersion version = (TransportVersion) declaredField.get(null);
                    TransportVersion maybePrevious = builder.put(version.id, version);
                    assert maybePrevious == null
                        : "expected [" + version.id + "] to be uniquely mapped but saw [" + maybePrevious + "] and [" + version + "]";
                    TransportVersion sameUniqueId = uniqueIds.put(version.uniqueId, version);
                    assert sameUniqueId == null
                        : "Versions "
                            + version
                            + " and "
                            + sameUniqueId
                            + " have the same unique id. Each TransportVersion should have a different unique id";
                } catch (IllegalAccessException e) {
                    assert false : "Version field [" + fieldName + "] should be public";
                }
            }
        }