@Override
  public String[] mapToHiveType(String clientTypeName) {
    Collection<String> hiveTableType = clientToHiveMap.get(clientTypeName.toUpperCase());
    if (hiveTableType == null) {
      LOG.warn("Not supported client table type " + clientTypeName);
      return new String[] {clientTypeName};
    }
    return Iterables.toArray(hiveTableType, String.class);
  }
ClassicTableTypeMapping.
Classic table type mapping :
 Managed Table ==&gt; Table
 External Table ==&gt; Table
 Virtual View ==&gt; View
service/src/java/org/apache/hive/service/cli/operation/ClassicTableTypeMapping.java