Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify HiveTest::testGroupByGroupingSets.
  • Loading branch information
qzchenwl committed Jun 23, 2022
commit 6e40662810de2e108ae116a577d19d9820acbdfb
12 changes: 1 addition & 11 deletions src/test/java/net/sf/jsqlparser/statement/select/HiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,11 @@ public void testLeftSemiJoin() throws Exception {

@Test
public void testGroupByGroupingSets() throws Exception {
String sql;
Statement statement;

sql = "SELECT\n"
String sql = "SELECT\n"
+ " C1, C2, C3, MAX(Value)\n"
+ "FROM\n"
+ " Sometable\n"
+ "GROUP BY C1, C2, C3 GROUPING SETS ((C1, C2), (C1, C2, C3), ())";

statement = CCJSqlParserUtil.parse(sql);

System.out.println(statement.toString());

Select select = (Select) statement;
assertStatementCanBeDeparsedAs(select, sql, true);
assertSqlCanBeParsedAndDeparsed(sql, true);
}
}