query.setGroupBy(new GroupBy(groups)); if (node.hasBooleanProperty(Info.ROLLUP)) { query.getGroupBy().setRollup(true);
query.setGroupBy(new GroupBy(groups)); if (node.hasBooleanProperty(Info.ROLLUP)) { query.getGroupBy().setRollup(true);
query.setGroupBy(new GroupBy(groups)); if (node.hasBooleanProperty(Info.ROLLUP)) { query.getGroupBy().setRollup(true);
result.setRollup(rollup); {if (true) return result;} throw new Error("Missing return statement in function");
result.setRollup(rollup); {if (true) return result;} throw new Error("Missing return statement in function");
result.setRollup(rollup); {if (true) return result;} throw new Error("Missing return statement in function");
@Test public void testGroupByRollup() { GroupSymbol g = new GroupSymbol("m.g"); //$NON-NLS-1$ From from = new From(); from.addGroup(g); Select select = new Select(); select.addSymbol(new ElementSymbol("a", false)); //$NON-NLS-1$ GroupBy groupBy = new GroupBy(); groupBy.setRollup(true); groupBy.addSymbol(new ElementSymbol("b", false)); //$NON-NLS-1$ groupBy.addSymbol(new ElementSymbol("c", false)); //$NON-NLS-1$ Query query = new Query(); query.setSelect(select); query.setFrom(from); query.setGroupBy(groupBy); helpTest("SELECT a FROM m.g GROUP BY rollup(b, c)", //$NON-NLS-1$ "SELECT a FROM m.g GROUP BY ROLLUP(b, c)", //$NON-NLS-1$ query); }