@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    String connectorName = getUnescapedName((ASTNode) root.getChild(0));
    PrincipalDesc principalDesc = AuthorizationParseUtils.getPrincipalDesc((ASTNode) root.getChild(1));

    if (principalDesc.getName() == null) {
      throw new SemanticException("Owner name can't be null in alter connector set owner command");
    }
    if (principalDesc.getType() == null) {
      throw new SemanticException("Owner type can't be null in alter connector set owner command");
    }

    AlterDataConnectorSetOwnerDesc desc = new AlterDataConnectorSetOwnerDesc(connectorName, principalDesc);
    addAlterDataConnectorDesc(desc);
  }
Analyzer for data connector set owner commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/dataconnector/alter/owner/AlterDataConnectorSetOwnerAnalyzer.java