public ResultSet getTypeInfo() throws SQLException {
    TGetTypeInfoResp getTypeInfoResp;
    TGetTypeInfoReq getTypeInfoReq = new TGetTypeInfoReq();
    getTypeInfoReq.setSessionHandle(sessHandle);
    try {
      getTypeInfoResp = client.GetTypeInfo(getTypeInfoReq);
    } catch (TException e) {
      throw new SQLException(e.getMessage(), "08S01", e);
    }
    Utils.verifySuccess(getTypeInfoResp.getStatus());
    return new HiveQueryResultSet.Builder(connection)
    .setClient(client)
    .setStmtHandle(getTypeInfoResp.getOperationHandle())
    .build();
  }
Translate hive table types into jdbc table types.
@param hivetabletype
@return the type of the table
jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java