@Override
    public int read(byte[] b, int off, int len) throws IOException {
        return len < 1 ? 0 : -1;
    }
Empty input stream produces nothing and it can never be closed.
clickhouse-data/src/main/java/com/clickhouse/data/stream/EmptyInputStream.java