public static List<String> getSkewedValuesFromASTNode(ASTNode node) throws SemanticException {
    ASTNode child = (ASTNode) node.getChild(0);
    if (child == null) {
      throw new SemanticException(ErrorMsg.SKEWED_TABLE_NO_COLUMN_VALUE.getMsg());
    } else {
      if (child.getToken().getType() != HiveParser.TOK_TABCOLVALUE) {
        throw new SemanticException(ErrorMsg.SKEWED_TABLE_NO_COLUMN_VALUE.getMsg());
      } else {
        return new ArrayList<String>(getSkewedValueFromASTNode(child));
      }
    }
  }
Utilities for skewed table related DDL.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/skewed/SkewedTableUtils.java