private String singleTable(String json, String table)
    throws IOException {
    Map obj = JsonBuilder.jsonToMap(json);
    if (JsonBuilder.isError(obj))
      return json;

    List tables = (List) obj.get("tables");
    if (TempletonUtils.isset(tables))
      return JsonBuilder.mapToJson(tables.get(0));
    else {
      return JsonBuilder
        .createError(ErrorMsg.INVALID_TABLE.format(table),
            ErrorMsg.INVALID_TABLE.getErrorCode()).
          buildJson();
    }
  }
Return a json "show table extended like" with extra info from "desc exteded"
This will return table with exact name match.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/HcatDelegator.java