code: public static boolean isCatalogCompatible(String catalogVersionStr)
      {
          if (catalogVersionStr == null || catalogVersionStr.isEmpty()) {
              return false;
          }
  
          //Check that it is a properly formed verstion string
          Object[] catalogVersion = MiscUtils.parseVersionString(catalogVersionStr);
          if (catalogVersion == null) {
              throw new IllegalArgumentException("Invalid version string " + catalogVersionStr);
          }
  
          if (!catalogVersionStr.equals(VoltDB.instance().getVersionString())) {
              return false;
          }
  
          return true;
      }
docs: Check if a catalog compiled with the given version of VoltDB is
  compatible with the current version of VoltDB.
  
  @param catalogVersionStr
  The version string of the VoltDB that compiled the catalog.
  @return true if it's compatible, false otherwise.