public boolean isDerby() {
    return "derby".equalsIgnoreCase(metastoreType);
  }
QTestMetaStoreHandler is responsible for wrapping the logic of handling different metastore
databases in qtests.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestMetaStoreHandler.java