@Test
  public void testParseValuesWithOneCol() throws Exception {
    ASTNode tree = parseDriver.parse(
            "VALUES(1),(4)", null).getTree();

    assertArrayOfStructsEquals("\n" +
            "TOK_FUNCTION\n" +
            "   array\n" +
            "   TOK_FUNCTION\n" +
            "      struct\n" +
            "      1\n" +
            "   TOK_FUNCTION\n" +
            "      struct\n" +
            "      4\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