Let's use Bytes.compareTo on the byte array here instead. I think we have a constant for TYPE_SCHEMA that's a byte array already.