@Override
  public int execute() throws HiveException {
    try (DataOutputStream outStream = ShowUtils.getOutputStream(new Path(desc.getResFile()), context)) {
      DataConnector connector = context.getDb().getDataConnector(desc.getConnectorName());
      if (connector == null) {
        throw new HiveException(ErrorMsg.DATACONNECTOR_NOT_EXISTS, desc.getConnectorName());
      }

      SortedMap<String, String> params = null;
      if (desc.isExtended()) {
        params = new TreeMap<>(connector.getParameters());
      }

      DescDataConnectorFormatter formatter = DescDataConnectorFormatter.getFormatter(context.getConf());
      formatter.showDataConnectorDescription(outStream, connector.getName(), connector.getType(),
          connector.getUrl(), connector.getOwnerName(), connector.getOwnerType(), connector.getDescription(), params);
    } catch (Exception e) {
      throw new HiveException(e, ErrorMsg.GENERIC_ERROR);
    }

    return 0;
  }
Operation process of describing a data connector.
ql/src/java/org/apache/hadoop/hive/ql/ddl/dataconnector/desc/DescDataConnectorOperation.java