@Test
  public void testParseValuesWithMultipleColumnsAndFirstColHasAlias() throws Exception {
    ASTNode tree = parseDriver.parse(
            "VALUES(1 a, 2 b, 3),(4, 5, 6)", null).getTree();

    assertArrayOfStructsEquals("\n" +
            "TOK_FUNCTION\n" +
            "   array\n" +
            "   TOK_FUNCTION\n" +
            "      struct\n" +
            "      1\n" +
            "      TOK_ALIAS\n" +
            "         a\n" +
            "      2\n" +
            "      TOK_ALIAS\n" +
            "         b\n" +
            "      3\n" +
            "      TOK_ALIAS\n" +
            "         col3\n" +
            "   TOK_FUNCTION\n" +
            "      struct\n" +
            "      4\n" +
            "      5\n" +
            "      6\n", tree);
  }
Test cases for parse WITHIN GROUP clause syntax.
function(expression) WITHIN GROUP (ORDER BY sort_expression)
parser/src/test/org/apache/hadoop/hive/ql/parse/TestValuesClause.java